-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update 3Di driver to expose groundwater and surface water as individual meshes #477
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Please
- (optional) add few lines here: https://github.com/lutraconsulting/MDAL/blob/master/docs/source/drivers/3di.rst
- bump the MDAL version
- update https://github.com/lutraconsulting/MDAL?tab=readme-ov-file#versioning-and-integration-in-qgis
- create PR in QGIS
tests/test_3di.cpp
Outdated
std::string path = test_file( "/3di/2d_groundwater/results_3di.nc" ); | ||
EXPECT_EQ( MDAL_MeshNames( path.c_str() ), "3Di:\"" + path + "\":Mesh2D;;3Di:\"" + path + "\":Mesh2D_groundwater;;3Di:\"" + path + "\":Mesh2D_surface_water" ); | ||
std::string uri = "3Di:\"" + path + "\":Mesh2D_groundwater"; | ||
// std::string uri = "3Di:\"" + path + "\":Mesh2D"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
tests/test_3di.cpp
Outdated
std::string path = test_file( "/3di/2d_groundwater/results_3di.nc" ); | ||
EXPECT_EQ( MDAL_MeshNames( path.c_str() ), "3Di:\"" + path + "\":Mesh2D;;3Di:\"" + path + "\":Mesh2D_groundwater;;3Di:\"" + path + "\":Mesh2D_surface_water" ); | ||
std::string uri = "3Di:\"" + path + "\":Mesh2D_surface_water"; | ||
// std::string uri = "3Di:\"" + path + "\":Mesh2D"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
|
||
private: | ||
std::vector< size_t > mRequestedMeshFaceIds; | ||
}; | ||
|
||
/** | ||
* Driver of 3Di file format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add few lines about the 3 meshes we support
48619c7
to
04a97c6
Compare
Thanks for the review @PeterPetrik . |
On the 3Di driver, in addition to the existing
Mesh2D
mesh, the driver now allows to openMesh2D_groundwater
andMesh2D_surface_water
individual meshesAlso fixes dataset min/max statistics which returned nan/nan, breaking the symbology in QGIS