Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix for 3 warnings in feature split code
git-svn-id: http://svn.osgeo.org/qgis/trunk@8011 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 21, 2008
1 parent 7b106de commit 4a68c19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/qgsgeometry.cpp
Expand Up @@ -2912,7 +2912,6 @@ int QgsGeometry::splitGeometry(const QList<QgsPoint>& splitLine, QList<QgsGeomet
}
else if(vectorType() == QGis::Polygon)
{
QgsGeometry* newGeometry = 0;
returnCode = splitPolygonGeometry(splitLineGeos, newGeometries);
delete splitLineGeos;
}
Expand Down Expand Up @@ -4500,7 +4499,7 @@ int QgsGeometry::splitLinearGeometry(GEOS_GEOM::LineString* splitLine, QList<Qgs
QList<GEOS_GEOM::Geometry*> testedGeometries;
GEOS_GEOM::Geometry* intersectGeom = 0;

for(int i = 0; i < mergedLineStrings->size(); ++i)
for(unsigned int i = 0; i < mergedLineStrings->size(); ++i)
{
intersectGeom = mGeos->intersection((*mergedLineStrings)[i]);
if(intersectGeom->getLength() > 0.00000001)
Expand Down Expand Up @@ -4584,7 +4583,7 @@ int QgsGeometry::splitPolygonGeometry(GEOS_GEOM::LineString* splitLine, QList<Qg
//include in result if yes
QList<GEOS_GEOM::Geometry*> testedGeometries;
GEOS_GEOM::Geometry* intersectGeometry = 0;
for(int i = 0; i < polygons->size(); ++i)
for(unsigned int i = 0; i < polygons->size(); ++i)
{
intersectGeometry = mGeos->intersection((*polygons)[i]);
if(intersectGeometry->getArea() > 0.00000000001)
Expand Down

0 comments on commit 4a68c19

Please sign in to comment.