Wed Jul 17 15:49:36
~/ccaih/ccav
$ time gensummaries
Traceback (most recent call last):
File "/Users/s2092651/bin/gensummaries", line 7, in <module>
execfile(__file__)
File "/Users/s2092651/work/ccaih/ccav/scripts/gensummaries", line 147, in <module>
main()
File "/Users/s2092651/work/ccaih/ccav/scripts/gensummaries", line 112, in main
_state_feature = getfeature(states, geometry)
File "/Users/s2092651/work/ccaih/ccav/scripts/gensummaries", line 43, in getfeature
matches = sorted([(x, geometry.intersection(shape(x["geometry"]).simplify(0.05))) for x in features], key=lambda x: x[1].area, reverse=True)
File "/Users/s2092651/lib/python2.7/site-packages/shapely/geometry/base.py", line 366, in intersection
return geom_factory(self.impl['intersection'](self, other))
File "/Users/s2092651/lib/python2.7/site-packages/shapely/topology.py", line 47, in __call__
"The operation '%s' produced a null geometry. Likely cause is invalidity of the geometry %s" % (self.fn.__name__, repr(this)))
shapely.geos.TopologicalError: The operation 'GEOSIntersection_r' produced a null geometry. Likely cause is invalidity of the geometry <shapely.geometry.multipolygon.MultiPolygon object at 0x11350c1d0>
real 0m26.362s
user 0m24.641s
sys 0m1.708s