DHI/mikeio

Dfsu: spatial selection of 3D file yields inconsistent amount of elements compared to layer based selection

Closed this issue · 4 comments

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

image

Expected behavior
Indication of 10 elements, consistent to 2D.

System information:
Python 3.9.12
MIKE IO 1.0.1

Thanks for reporting, @ovho-dhi , this may have been fixed in #373 and merged to main a few days ago (or even in #371 + #372 which have been released as mikeio==1.0.2). Could you please check with the latest dev version? [let me know if you need instructions on how to get this]

@ovho-dhi - could you please try if the problem still persists with mikeio==1.0.3 released yesterday? Thanks

@jsmariegaard - i just rerun the notebook with mikeio==1.0.3 and still receive the exact same inconsistent output.

Thanks @ovho-dhi - I will take a look again.