@@ -4832,7 +4832,7 @@ int QgsGeometry::splitPolygonGeometry( GEOSGeometry* splitLine, QList<QgsGeometr
4832
4832
GEOSGeometry *cutEdges = GEOSPolygonizer_getCutEdges ( &nodedGeometry, 1 );
4833
4833
if ( cutEdges )
4834
4834
{
4835
- if ( GEOSGetNumGeometries ( cutEdges ) > 0 )
4835
+ if ( numberOfGeometries ( cutEdges ) > 0 )
4836
4836
{
4837
4837
GEOSGeom_destroy ( cutEdges );
4838
4838
GEOSGeom_destroy ( nodedGeometry );
@@ -4844,7 +4844,7 @@ int QgsGeometry::splitPolygonGeometry( GEOSGeometry* splitLine, QList<QgsGeometr
4844
4844
#endif
4845
4845
4846
4846
GEOSGeometry *polygons = GEOSPolygonize ( &nodedGeometry, 1 );
4847
- if ( !polygons || GEOSGetNumGeometries ( polygons ) == 0 )
4847
+ if ( !polygons || numberOfGeometries ( polygons ) == 0 )
4848
4848
{
4849
4849
if ( polygons )
4850
4850
GEOSGeom_destroy ( polygons );
@@ -4864,7 +4864,7 @@ int QgsGeometry::splitPolygonGeometry( GEOSGeometry* splitLine, QList<QgsGeometr
4864
4864
// ratio intersect geometry / geometry. This should be close to 1
4865
4865
// if the polygon belongs to the input geometry
4866
4866
4867
- for ( int i = 0 ; i < getNumberOfGeometries ( polygons ); i++ )
4867
+ for ( int i = 0 ; i < numberOfGeometries ( polygons ); i++ )
4868
4868
{
4869
4869
const GEOSGeometry *polygon = GEOSGetGeometryN ( polygons, i );
4870
4870
intersectGeometry = GEOSIntersection ( mGeos , polygon );
@@ -4883,7 +4883,7 @@ int QgsGeometry::splitPolygonGeometry( GEOSGeometry* splitLine, QList<QgsGeometr
4883
4883
}
4884
4884
4885
4885
bool splitDone = true ;
4886
- int nGeometriesThis = getNumberOfGeometries ( mGeos ); // original number of geometries
4886
+ int nGeometriesThis = numberOfGeometries ( mGeos ); // original number of geometries
4887
4887
if ( testedGeometries.size () == nGeometriesThis )
4888
4888
{
4889
4889
splitDone = false ;
@@ -5003,7 +5003,7 @@ GEOSGeometry *QgsGeometry::nodeGeometries( const GEOSGeometry *splitLine, GEOSGe
5003
5003
return unionGeometry;
5004
5004
}
5005
5005
5006
- int QgsGeometry::getNumberOfGeometries (GEOSGeometry* g) const
5006
+ int QgsGeometry::numberOfGeometries (GEOSGeometry* g) const
5007
5007
{
5008
5008
if (!g)
5009
5009
{
0 commit comments