-
Notifications
You must be signed in to change notification settings - Fork 2
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
DataTableAccessor: Inserting geometry values into tables #34
Comments
Hi @AL89, This is a really good point. I think there's two main things here:
Perhaps a startpoint is @wuwwen could answer 1 with:
|
@ryan-kipawa, The insert method can't support insert geometry for the time being. But we can modify to support it. Both extension can be made for set_value method. But we need to define the input parameters. What data type should we support? Maybe it's WKT(Well know text)? |
It's very common in Python to use Shapely for geometries. Their objects can also be converted to WKT. I believe there's different versions and specifications of WKT, so we would need to make sure it works seamlessly with the format that MIKE+ accepts. I suggest:
|
Hi
I like the idea of this library to access certain things of the M+ database. And furthermore to insert data into it.
However, I was wondering how you insert spatial data into the M+ database for the data tables that contains geometric features, e.g.
msm_Node
,msm_Catchment
,msm_Link
etc.? How do you link the coordinates the each individual feature?From the example that comes from the
DataTableAccessor
notebook, I would like to add another field that contains the geometric values (i.e. coordinates for upstream and downstream nodes). I mean, which format do I write this in? Should I convert it toshapely.geom
objects, a WKT/WKB string, or what?Thanks in advance!
The text was updated successfully, but these errors were encountered: