Skip to content
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

dem:TINRelief: Use LOD=0 if dem:lod is not specified #88

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

mlavik1
Copy link
Contributor

@mlavik1 mlavik1 commented Feb 22, 2024

Hi! I'm not 100% sure if you want this PR, but I'll give it a try.

I've run into some gmls where dem:lod is missing from TINRelief, although I believe it's required?
These models causes a crash in cityobjectelementparser.cpp.

At least I think it would be nice to avoid the crash, and instead throw a runtime error or something. But handling this (by setting LOD to 0 as I did in this PR) will make terrain from the Berlin 3D dataset work: https://www.businesslocationcenter.de/en/economic-atlas/download-portal

@mlavik1
Copy link
Contributor Author

mlavik1 commented Feb 22, 2024

export_terrain.zip
Here's a GML where the problem can be reproduced (textures are missing, since they take too much space)

@jklimke jklimke merged commit ce66bf2 into jklimke:master Jul 8, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants