FDiot / code_tympan2

0 stars 0 forks source link

test failures with recent shapely/geos #62

Open FDiot opened 7 years ago

FDiot commented 7 years ago

Created by bitbucket user Former user on 2017-07-27 09:48 Last updated on 2017-07-27 10:04

I'm getting test failures under Debian 9:

======================================================================
ERROR: test_split_level_curve (__main__.AltimetryMergerTC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/denis/src/tympan/build/python/tests/test_altimetry_sites.py", line 314, in test_split_level_curve
    cleaner = recursively_merge_all_subsites(self.mainsite)
  File "/home/denis/src/tympan/build/cython_d/tympan/altimetry/merge.py", line 34,in recursively_merge_all_subsites
    cleaned.merge_subsite(current_site)
  File "/home/denis/src/tympan/build/cython_d/tympan/altimetry/merge.py", line 169, in merge_subsite
    subcleaner.process_all_features()
  File "/home/denis/src/tympan/build/cython_d/tympan/altimetry/merge.py", line 151, in process_all_features
    self.process_level_curves()
  File "/home/denis/src/tympan/build/cython_d/tympan/altimetry/merge.py", line 120, in process_level_curves
    shape = level_curve.shape.intersection(self.siteshape)
  File "/usr/lib/python3/dist-packages/shapely/geometry/base.py", line 565, in intersection
    return geom_factory(self.impl['intersection'](self, other))
  File "/usr/lib/python3/dist-packages/shapely/topology.py", line 70, in __call__
    self._check_topology(err, this, other)
  File "/usr/lib/python3/dist-packages/shapely/topology.py", line 38, in _check_topology
    self.fn.__name__, repr(geom)))
shapely.geos.TopologicalError: The operation 'GEOSIntersection_r' could not be performed. Likely cause is invalidity of the geometry <shapely.geometry.polygon.Polygon object at 0x7f217520ea90>
FDiot commented 7 years ago

Bitbucket user BachirH commented on 2017-07-27 10:04

We had the same problem on AppVeyor and had to force the version of shapely to remove the problem for now. https://github.com/FDiot/code_tympan/commit/022a15512469584fc339416d775e0b3e14f9c918

We'll try to investigate it more, later.