-
Notifications
You must be signed in to change notification settings - Fork 7
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
issues exporter #275
Comments
…ema in create_ding0_sql_tables() and schema in export_all_dataframes_to_db(), already tested
One more thing: In MVGD (DP v0.4.5, run 20180823154014) I get the following error:
This is because one dataset contains Lines 278 to 292 in c04e8eb
Needs to be fixed too, let's take 30 or something.. |
…tables ding0_mv_generator and ding0_lv_generator
And another issue: while exporting some hundred grids, there was at least one which crashed during export of Line 443 in ca6ca4e
The geom is a Polygon but the table column type is MultiPolygon. Without reviewing the code I have no clue why we have the wrong shapely geom type attached to .geom property.I needed a fast fix so I just added
prior to the dict assignment (MultiPolygon must be imported from shapely in the script header). This ugly fix must not be implemented in the branch, but it may helps you to avoid the export to crash for your run which I guess is quite time-critical too. I can check why we have the wrong type here by end of Oct. |
Was not aware that this will cause trouble to the import. At the time I created the table definition I tried to use the geomtypes I found in the table description and ORM class definition. I already noticed that in some cases the "geom" Column types does not match the shaply geometrys for some reason. So maybe the mistake is not within the shaply.geom but in the Table definition? |
use damn ugly workarounds, do not use in production! #275
Close because of upcoming major refactoring of the database interface #369, and then the using of saio. |
Thanks for the exporter, this makes life a lot easier.
While messing around with the export, I stumbled across 2 things:
(I used a network obj with several MVGDs)
ding0/ding0/io/export.py
Lines 176 to 185 in c04e8eb
ding0/ding0/io/db_export.py
Line 41 in c04e8eb
Sorry for not creating a PR due to lack of time for testing..
The text was updated successfully, but these errors were encountered: