mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
fix #5487
This commit is contained in:
parent
a1bf57adfb
commit
cbd88ee001
@ -5572,8 +5572,11 @@ GEOSGeometry* QgsGeometry::reshapeLine( const GEOSGeometry* line, const GEOSGeom
|
||||
{
|
||||
//make sure there are at least two intersection between line and reshape geometry
|
||||
GEOSGeometry* intersectGeom = GEOSIntersection( line, reshapeLineGeos );
|
||||
atLeastTwoIntersections = ( GEOSGeomTypeId( intersectGeom ) == GEOS_MULTIPOINT && GEOSGetNumGeometries( intersectGeom ) > 1 );
|
||||
GEOSGeom_destroy( intersectGeom );
|
||||
if ( intersectGeom )
|
||||
{
|
||||
atLeastTwoIntersections = ( GEOSGeomTypeId( intersectGeom ) == GEOS_MULTIPOINT && GEOSGetNumGeometries( intersectGeom ) > 1 );
|
||||
GEOSGeom_destroy( intersectGeom );
|
||||
}
|
||||
}
|
||||
catch ( GEOSException &e )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user