Skip to content

Commit

Permalink
PointOnSurface crashes with a collection containing a empty linestring
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Nov 29, 2023
1 parent 34b29f8 commit bb1a026
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/algorithm/InteriorPointLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ InteriorPointLine::addInterior(const Geometry* geom)
{
const LineString* ls = dynamic_cast<const LineString*>(geom);
if (ls) {
if (ls->isEmpty()) return;
addInterior(ls->getCoordinatesRO());
return;
}
Expand Down

0 comments on commit bb1a026

Please sign in to comment.