Skip to content

Commit

Permalink
don't treat all geometry collections as points/lines when noding
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed Feb 21, 2025
1 parent 0d169bb commit 70aa185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ geos::unique_ptr QgsGeos::nodeGeometries( const GEOSGeometry *splitLine, const G

geos::unique_ptr geometryBoundary;
GEOSContextHandle_t context = QgsGeosContext::get();
if ( GEOSGeomTypeId_r( context, geom ) == GEOS_POLYGON || GEOSGeomTypeId_r( context, geom ) == GEOS_MULTIPOLYGON )
if ( GEOSGeom_getDimensions_r( context, geom ) == 2 )
geometryBoundary.reset( GEOSBoundary_r( context, geom ) );
else
geometryBoundary.reset( GEOSGeom_clone_r( context, geom ) );
Expand Down

0 comments on commit 70aa185

Please sign in to comment.