Using "run_telfile.py contour" may produce an incorrect shapefile on Windows
Summary
Extracting a mesh contour using run_telfile.py contour
can produce an incorrect shapefile, with polygons located outside the outer contour(s) of the mesh.
Environment
- Operating System: Windows
- TELEMAC version: 9.0
Steps to reproduce
The bug is not easily reproducible because it only occurs on some meshes. The buggy contour is extracted using the following command:
run_telfile.py contour mesh.slf mesh.shp
What is the current bug behaviour?
The shapefile polygon(s) are sometimes located outside the outer contour(s) of the mesh.
What is the expected correct behaviour?
The shapefile polygon(s) should always be located inside the outer contour(s) of the mesh.
Relevant logs and/or screenshots
The following screenshot illustrates the problem:
Whereas a correct shapefile should look like this for the same input mesh: