Dfsu: spatial selection of 3D file yields inconsistent amount of elements compared to layer based selection
Closed this issue · 4 comments
ovho-dhi commented
Description
Spatial selection of a 3D file indicates missing element although its centroid lies within the given Polygon. Converting the selection to 2D via layer specification yields "correct" output.
To Reproduce
In [24) onwards >> https://github.com/DHI/mikeio/blob/dfsu_area_selection/notebooks/spatial_Selection_Element_IDs.ipynb
Expected behavior
Indication of 10 elements, consistent to 2D.
System information:
Python 3.9.12
MIKE IO 1.0.1
jsmariegaard commented
jsmariegaard commented
@ovho-dhi - could you please try if the problem still persists with mikeio==1.0.3 released yesterday? Thanks
ovho-dhi commented
@jsmariegaard - i just rerun the notebook with mikeio==1.0.3 and still receive the exact same inconsistent output.
jsmariegaard commented
Thanks @ovho-dhi - I will take a look again.