Skip to content
Snippets Groups Projects
Commit 67439ed6 authored by Karsten Rink's avatar Karsten Rink
Browse files

fixed point reading bug in xmlinterface

parent 2d5f4dcd
No related branches found
No related tags found
No related merge requests found
...@@ -77,10 +77,10 @@ int XmlGmlInterface::readFile(const QString &fileName) ...@@ -77,10 +77,10 @@ int XmlGmlInterface::readFile(const QString &fileName)
geoObjects->addPointVec(points, gliName, pnt_names); geoObjects->addPointVec(points, gliName, pnt_names);
} }
else if (type_node.nodeName().compare("polylines") == 0) else if (type_node.nodeName().compare("polylines") == 0)
readPolylines(type_node, polylines, points, readPolylines(type_node, polylines, const_cast<std::vector<GeoLib::Point*>*>(geoObjects->getPointVec(gliName)),
geoObjects->getPointVecObj(gliName)->getIDMap(), ply_names); geoObjects->getPointVecObj(gliName)->getIDMap(), ply_names);
else if (type_node.nodeName().compare("surfaces") == 0) else if (type_node.nodeName().compare("surfaces") == 0)
readSurfaces(type_node, surfaces, points, readSurfaces(type_node, surfaces, const_cast<std::vector<GeoLib::Point*>*>(geoObjects->getPointVec(gliName)),
geoObjects->getPointVecObj(gliName)->getIDMap(), sfc_names); geoObjects->getPointVecObj(gliName)->getIDMap(), sfc_names);
else else
WARN("Unknown XML-Node found in file."); WARN("Unknown XML-Node found in file.");
......
...@@ -58,6 +58,7 @@ target_link_libraries( StratView ...@@ -58,6 +58,7 @@ target_link_libraries( StratView
${QT_LIBRARIES} ${QT_LIBRARIES}
BaseLib BaseLib
GeoLib GeoLib
MathLib
) )
set_property(TARGET StratView PROPERTY FOLDER "DataExplorer") set_property(TARGET StratView PROPERTY FOLDER "DataExplorer")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment