Skip to content

Commit

Permalink
fixes #1710
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Jan 23, 2025
1 parent 17830fd commit 7477bf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/geos_methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2732,7 +2732,8 @@ SpatVector SpatVector::erase_agg(SpatVector v) {
}
}
if (!result.empty()) {
SpatVectorCollection coll = coll_from_geos(result, hGEOSCtxt);
std::vector<long> ids;
SpatVectorCollection coll = coll_from_geos(result, hGEOSCtxt, ids, true, false);
out = coll.get(0);
out.srs = srs;
out.df = df.subset_rows(rids);
Expand Down

0 comments on commit 7477bf9

Please sign in to comment.