Skip to content

Commit 84f55d3

Browse files
author
mhugent
committed
Use higher tresholds for line splitting to avoid numerical problems with large coordinate values
git-svn-id: http://svn.osgeo.org/qgis/trunk@10928 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 67aae0a commit 84f55d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgsgeometry.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -4795,8 +4795,8 @@ int QgsGeometry::splitLinearGeometry( GEOSGeometry *splitLine, QList<QgsGeometry
47954795
GEOSGeometry* intersectGeom = 0;
47964796

47974797
//hardcoded thresholds
4798-
double bufferDistance = 0.000000001;
4799-
double intersectThreshold = 0.0000001;
4798+
double bufferDistance = 0.0001;
4799+
double intersectThreshold = 0.1;
48004800

48014801
for ( int i = 0; i < GEOSGetNumGeometries( mergedLines ); i++ )
48024802
{

0 commit comments

Comments
 (0)