Hello

I stumbled accross an issue with Shapely. See the following test case:

>>> from shapely import wkt
>>> g1 = wkt.loads('POLYGON ((0.0000000000000000 0.0000000000000000, 
>>> 1.0000000000000000 1.0000000000000000, 1.0000000000000000 
>>> 0.0000000000000000, 0.0000000000000000 0.0000000000000000), 
>>> (0.5000000000000000 0.5000000000000000, 0.7000000000000000 
>>> 0.7000000000000000, 0.7000000000000000 0.5000000000000000, 
>>> 0.5000000000000000 0.5000000000000000))')
>>> g2 = wkt.loads('POLYGON ((0.0000000000000000 0.0000000000000000, 
>>> 1.0000000000000000 1.0000000000000000, 1.0000000000000000 
>>> 0.0000000000000000, 0.0000000000000000 0.0000000000000000), 
>>> (0.5000000000000000 0.5000000000000000, 0.7000000000000000 
>>> 0.7000000000000000, 0.7000000000000000 0.5000000000000000, 
>>> 0.5000000000000000 0.5000000000000000))')
>>> g1.equals(g2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/home/eric/public_html/mapfish/env/lib/python2.5/site-packages/Shapely-1.0.11-py2.5.egg/shapely/predicates.py",
line 34, in __call__
    return bool(self.fn(self.context._geom, other._geom))
  File 
"/home/eric/public_html/mapfish/env/lib/python2.5/site-packages/Shapely-1.0.11-py2.5.egg/shapely/predicates.py",
line 21, in errcheck
    raise PredicateError, "Failed to evaluate %s" % repr(self.fn)
shapely.geos.PredicateError: Failed to evaluate <_FuncPtr object at 0xb7c285dc>

Any idea?

--
Eric
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to