Package: libgeos2
Version: 2.0.1-1
Followup-For: Bug #303737

Hi, Steve,

The following patch is a backport of the fix from geos CVS. Including
this as 2.0.1-2 should be much easier than creating a completely new
release.

Thanks,
Markus

diff -ur geos-2.0.1/debian/changelog geos-2.0.1new/debian/changelog
--- geos-2.0.1/debian/changelog 2005-04-08 15:15:41.062560352 +0200
+++ geos-2.0.1new/debian/changelog      2005-04-08 15:55:49.729387336 +0200
@@ -1,3 +1,9 @@
+geos (2.0.1-2) unstable; urgency=low
+
+  * Fix bug in isvalid(), backport from geos CVS (Closes: #303737).
+
+ -- Steve Halasz <[EMAIL PROTECTED]>  Fri, 08 Apr 2005 15:28:40 +0200 
+
 geos (2.0.1-1) unstable; urgency=low
 
   * Initial Release. (Closes: #277514).
diff -ur geos-2.0.1/source/operation/valid/IsValidOp.cpp 
geos-2.0.1new/source/operation/valid/IsValidOp.cpp
--- geos-2.0.1/source/operation/valid/IsValidOp.cpp     2004-09-13 
14:50:11.000000000 +0200
+++ geos-2.0.1new/source/operation/valid/IsValidOp.cpp  2005-04-08 
15:25:54.375322640 +0200
@@ -361,7 +361,11 @@
        for(int i=0;i<p->getNumInteriorRing();i++) {
                LinearRing *hole=(LinearRing*) p->getInteriorRingN(i);
                const Coordinate& 
holePt=findPtNotNode(hole->getCoordinatesRO(),shell,graph);
-               Assert::isTrue(!(holePt==Coordinate::getNull()), "Unable to 
find a hole point not a vertex of the shell");
+               // Fix 2005-04-07 
+               // Assert::isTrue(!(holePt==Coordinate::getNull()), "Unable to 
find a hole point not a vertex of the shell");
+               if (holePt == null) return;
+               // Fix end
+
                bool outside=!pir->isInside(holePt);
                if (outside) {
                        validErr=new TopologyValidationError(
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to