[QGIS Commit] r10928 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Jun 15 07:45:48 EDT 2009


Author: mhugent
Date: 2009-06-15 07:45:48 -0400 (Mon, 15 Jun 2009)
New Revision: 10928

Modified:
   trunk/qgis/src/core/qgsgeometry.cpp
Log:
Use higher tresholds for line splitting to avoid numerical problems with large coordinate values

Modified: trunk/qgis/src/core/qgsgeometry.cpp
===================================================================
--- trunk/qgis/src/core/qgsgeometry.cpp	2009-06-15 07:00:55 UTC (rev 10927)
+++ trunk/qgis/src/core/qgsgeometry.cpp	2009-06-15 11:45:48 UTC (rev 10928)
@@ -4795,8 +4795,8 @@
   GEOSGeometry* intersectGeom = 0;
 
   //hardcoded thresholds
-  double bufferDistance = 0.000000001;
-  double intersectThreshold =  0.0000001;
+  double bufferDistance = 0.0001;
+  double intersectThreshold =  0.1;
 
   for ( int i = 0; i < GEOSGetNumGeometries( mergedLines ); i++ )
   {



More information about the QGIS-commit mailing list