Skip to content

Commit

Permalink
Reverted citygmltest.cpp.
Browse files Browse the repository at this point in the history
Fixed DEM_GridNode place
  • Loading branch information
HarutakaMatsumoto committed Oct 26, 2021
1 parent b49b076 commit a716a9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions sources/src/parser/cityobjectelementparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ namespace citygml {
|| node == NodeType::DEM_TINReliefNode
|| node == NodeType::DEM_MassPointReliefNode
|| node == NodeType::DEM_BreaklineReliefNode
|| node == NodeType::DEM_RasterReliefNode) {
|| node == NodeType::DEM_RasterReliefNode
|| node == NodeType::DEM_GridNode) {
setParserForNextElement(new CityObjectElementParser(m_documentParser, m_factory, m_logger, [this](CityObject* obj) {
m_model->addChildCityObject(obj);
}));
Expand All @@ -302,8 +303,7 @@ namespace citygml {
|| node == NodeType::DEM_TinNode
|| node == NodeType::DEM_ReliefPointsNode
|| node == NodeType::DEM_RidgeOrValleyLinesNode
|| node == NodeType::DEM_BreaklinesNode
|| node == NodeType::DEM_GridNode) {
|| node == NodeType::DEM_BreaklinesNode) {

parseGeometryForLODLevel(std::stoi(m_model->getAttribute("dem:lod")));
} else if (node == NodeType::BLDG_Lod1MultiCurveNode
Expand Down
6 changes: 2 additions & 4 deletions test/citygmltest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ int main( int argc, char **argv )
if ( log )
{
std::cout << std::endl << "Objects hierarchy:" << std::endl;
const citygml::ConstCityObjects& roots = city->getRootCityObjects();
// const citygml::ConstCityObjects& roots = city->getRootCityObjects();

for ( unsigned int i = 0; i < roots.size(); i++ ) analyzeObject( roots[ i ], 2 );
// for ( unsigned int i = 0; i < roots.size(); i++ ) analyzeObject( roots[ i ], 2 );
}

std::cout << "Done." << std::endl;
Expand All @@ -132,8 +132,6 @@ int main( int argc, char **argv )

void analyzeObject( const citygml::CityObject* object, unsigned int indent )
{
std::cout
<< object->getTypeAsString();
// for ( unsigned int i = 0; i < indent; i++ ) std::cout << " ";
// std::cout << "Object " << citygml::getCityObjectsClassName( object->getType() ) << ": " << object->getId() << std::endl;

Expand Down

0 comments on commit a716a9d

Please sign in to comment.