Hello, I'm Alejandro Betancourt, mathematical engineer and student of the master in applied mathematics. Now i'm working on my tesis and i'm using "shapely" in order to handle geometric operations between polygons.
I'm writing to you in order to report a possible bug in shapely. I'm getting
the bug when i tried to get the difference between two simple polygons
(attached).
The polygons are attached and the lines bellow are the way to get the error.
>>> import cPickle
>>> p1,p2 = cPickle.load(open("polygon.cp","rb"))
>>> p1.difference(p2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.6/shapely/geometry/base.py", line 314, in
difference
return geom_factory(self.impl['difference'](self, other))
File "/usr/lib/pymodules/python2.6/shapely/topology.py", line 55, in
__call__
"This operation produced a null geometry. Reason: unknown")
shapely.geos.TopologicalError: This operation produced a null geometry.
Reason: unknown
I hope this helps you in order to make better shapely.
--
---------------------------------------------------------------------
Alejandro Betancourt A
Investigador-RiSE Group
tel: 3325566 cel: 3017363469
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Est. Ingeniería Matemática
Universidad EAFIT
Medellín, Colombia
---------------------------------------------------------------------
polygon.cp
Description: Binary data
_______________________________________________ Community mailing list [email protected] http://lists.gispython.org/mailman/listinfo/community
