Skip to content

Commit

Permalink
Merge pull request #88 from catenda/missing-dem-lod
Browse files Browse the repository at this point in the history
dem:TINRelief: Use LOD=0 if dem:lod is not specified
  • Loading branch information
jklimke authored Jul 8, 2024
2 parents 146756f + e3e9047 commit ce66bf2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sources/src/parser/cityobjectelementparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,12 @@ namespace citygml {
|| node == NodeType::DEM_RidgeOrValleyLinesNode
|| node == NodeType::DEM_BreaklinesNode) {

parseGeometryForLODLevel(std::stoi(m_model->getAttribute("dem:lod")));
std::string lod = m_model->getAttribute("dem:lod");
if (!lod.empty()) {
parseGeometryForLODLevel(std::stoi(lod));
} else {
parseGeometryForLODLevel(0);
}
} else if (node == NodeType::GEN_Lod0TerrainIntersectionNode
|| node == NodeType::WTR_Lod0MultiCurveNode
|| node == NodeType::WTR_Lod0MultiSurfaceNode) {
Expand Down

0 comments on commit ce66bf2

Please sign in to comment.