TopologyException: Input geom 1 is invalid: Self-intersection at or near point 12.784377831737602 43.368439375230594 at 12.784377831737602 43.368439375230594
2017/10/16 14:10:30 [32171956]:
Traceback (most recent call last):
File "/home/gfz-fe/scheffler/python/gms_preprocessing/gms_preprocessing/misc/exception_handler.py", line 71, in wrapped_GMS_mapper
GMS_objs = GMS_mapper(GMS_objs, **kwargs)
File "/home/gfz-fe/scheffler/python/gms_preprocessing/gms_preprocessing/processing/pipeline.py", line 109, in L1B_map
L1B_obj.compute_global_shifts()
File "/home/gfz-fe/scheffler/python/gms_preprocessing/gms_preprocessing/algorithms/L1B_P.py", line 510, in compute_global_shifts
elif self.coreg_needed and self.spatRef_available:
File "/home/gfz-fe/scheffler/python/gms_preprocessing/gms_preprocessing/algorithms/L1B_P.py", line 237, in spatRef_available
self.get_spatial_reference_scene()
File "/home/gfz-fe/scheffler/python/gms_preprocessing/gms_preprocessing/algorithms/L1B_P.py", line 257, in get_spatial_reference_scene
self.spatRef_scene = RSF.choose_ref_scene() # type: Union[ref_Scene, None]
File "/home/gfz-fe/scheffler/python/gms_preprocessing/gms_preprocessing/algorithms/L1B_P.py", line 181, in choose_ref_scene
self._collect_refscene_metadata()
File "/home/gfz-fe/scheffler/python/gms_preprocessing/gms_preprocessing/algorithms/L1B_P.py", line 111, in _collect_refscene_metadata
GDF['overlapParams'] = list(GDF['polyLonLat'].map(get_OL_prms))
File "/home/gfz-fe/python_GFZ/python/lib/python3.6/site-packages/pandas/core/series.py", line 2158, in map
new_values = map_f(values, arg)
File "pandas/_libs/src/inference.pyx", line 1569, in pandas._libs.lib.map_infer (pandas/_libs/lib.c:66440)
File "/home/gfz-fe/scheffler/python/gms_preprocessing/gms_preprocessing/algorithms/L1B_P.py", line 109, in get_OL_prms
def get_OL_prms(poly): return get_overlap_polygon(poly, self.src_footprint_poly)
File "/home/gfz-fe/scheffler/python/py_tools_ds/py_tools_ds/geo/vector/topology.py", line 28, in get_overlap_polygon
overlap_poly = poly1.intersection(poly2)
File "/home/gfz-fe/python_GFZ/python/lib/python3.6/site-packages/shapely/geometry/base.py", line 620, in intersection
return geom_factory(self.impl['intersection'](self, other))
File "/home/gfz-fe/python_GFZ/python/lib/python3.6/site-packages/shapely/topology.py", line 70, in __call__
self._check_topology(err, this, other)
File "/home/gfz-fe/python_GFZ/python/lib/python3.6/site-packages/shapely/topology.py", line 38, in _check_topology
self.fn.__name__, repr(geom)))
shapely.errors.TopologicalError: The operation 'GEOSIntersection_r' could not be performed. Likely cause is invalidity of the geometry <shapely.geometry.polygon.Polygon object at 0x7fc98c924748>