-
Notifications
You must be signed in to change notification settings - Fork 53
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
3DCityDB Import Fails: A fatal error occurred during import. #304
Comments
This is a data issue. Also see #301 for the same discussion. The data must be fixed before importing it. |
didnt see that it was already discussed. Thanks for the quick answer. :) |
Hey guys, lately I also encountered similar problem. It's happening for me during import of LoD2 for Hessen. I'm curious how actually "--no-fail-fast" flag is working? Because even with the flag passed to the config file, the error stops the import. Is that intended behaviour? |
Fatal errors from the backend will let the import fail even when using the If you really face the same situation in Hessen like with Brandenburg, then you try and import invalid geometries which PostGIS simply refuses to store. We could adapt the importer to skip such invalid geometries and not send them to the backend, which would mean losing information. I'd prefer that the data gets fixed before importing. |
Thank you for your quick answer @clausnagel! 🙏 I agree to some extent that the data should be corrected before importing, but sometimes it can be a time-consuming process to fix the data or contact the relevant authorities, so with the functionality of skipping faulty objects that can make things easier. Even if this involves losing some information. I don't have much knowledge of the Java language and haven't paid much attention to the source code, but do you think this functionality might be difficult to implement? |
I would also appreciate such a feature, the person importing the data is usually not the one able to fix it 🙏 z.B. However, Hessen worked perfectly for me @msochan 👍 |
@Krassnig That's interesting! Did you get data from here? |
@Krassnig, @msochan, ok, we will implement a test to optionally skip invalid curves during import. I can reproduce the error with datasets from Brandenburg and Hessen (I tested with "Ahnatal-LoD2" from the link provided by @msochan). @Krassnig, can you share a sample from Luxembourg so that we can make sure that the fix also works for that dataset? Will let you know here when a fix is available for testing. |
I have added a too-few-points check when importing curves with c85e3df. I haven't changed the default behaviour of the importer. So, by default, an invalid curve will cause the import to fail. But you can now let the importer ignore and skip invalid curves. When using the GUI, go to "Preferences -> Import -> General" and uncheck the option "Cancel import immediately in case of errors". For the CLI, use the To test the change, clone the |
@clausnagel Thank you so much for quick resolvement! I just ran it for Hessen sample, which previously was causing the problem, and now it is working like a charm! 😍 |
@msochan Yes, I got it from gds-hessen. I redownloaded Ahnatal from gds-hessen and it seems that they recently updated their datasets. My version is much older (around 2021 ~ 2022). I get the same errors for the new dataset. @clausnagel Here is a sample from Luxembourg Bettembourg that fails direct link. entire dataset. The error message from the CLI:
After building the master I could import the entirety of Luxembourg. I'm also gonna try Brandenburg tomorrow. A big thank you from me as well 👍 |
Most likely because Gradle was still at version 7.4. I updated Gradle to 8.10. Should work now with Java 21. |
Very nice 👌 |
Just released version 5.5.0 which includes the fix. Closing. |
I am currently trying to import Lod2 Data from the German state of Brandenburg into 3DCityDB.
For a lot of Files the import gets aborted with the message:
The specific file is available here: https://data.geobasis-bb.de/geobasis/daten/3d_gebaeude/lod2_gml/
Filename: lod2_3314-5865_geb.gml
I get this error for a lot of files regarding the state of Brandenburg. Any idea why that is and how to fix it?
The text was updated successfully, but these errors were encountered: