[ create a new paste ] login | about

Link: http://codepad.org/GaFzVP2q    [ raw code | fork ]

Python, pasted on Jul 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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


Create a new paste based on this one


Comments: