mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
don't treat all geometry collections as points/lines when noding
This commit is contained in:
parent
0d169bba7c
commit
70aa18561e
@ -1457,7 +1457,7 @@ geos::unique_ptr QgsGeos::nodeGeometries( const GEOSGeometry *splitLine, const G
|
|||||||
|
|
||||||
geos::unique_ptr geometryBoundary;
|
geos::unique_ptr geometryBoundary;
|
||||||
GEOSContextHandle_t context = QgsGeosContext::get();
|
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 ) );
|
geometryBoundary.reset( GEOSBoundary_r( context, geom ) );
|
||||||
else
|
else
|
||||||
geometryBoundary.reset( GEOSGeom_clone_r( context, geom ) );
|
geometryBoundary.reset( GEOSGeom_clone_r( context, geom ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user