Skip to content
Snippets Groups Projects
Commit 56c48c0f authored by Tom Fischer's avatar Tom Fischer
Browse files

Merge pull request #13 from endJunction/AddSurfaceOutputToBoostXmlGmlInterface

[IO] Merge surface if-cond; add polylines empty test.
parents 77ebdd96 bb713571
No related branches found
No related tags found
No related merge requests found
......@@ -348,15 +348,12 @@ void BoostXmlGmlInterface::addSurfacesToPropertyTree(
}
std::vector<GeoLib::Surface*> const*const surfaces(sfc_vec->getVector());
if (! surfaces) {
INFO("BoostXmlGmlInterface::addSurfacesToPropertyTree(): "
"No surfaces within the geometry \"%s\".", _exportName.c_str());
return;
}
if (surfaces->empty()) {
INFO("BoostXmlGmlInterface::addSurfacesToPropertyTree(): "
"No surfaces within the geometry \"%s\".", _exportName.c_str());
if (!surfaces || surfaces->empty())
{
INFO(
"BoostXmlGmlInterface::addSurfacesToPropertyTree(): "
"No surfaces within the geometry \"%s\".",
_exportName.c_str());
return;
}
......@@ -389,9 +386,12 @@ void BoostXmlGmlInterface::addPolylinesToPropertyTree(
}
std::vector<GeoLib::Polyline*> const*const polylines(vec->getVector());
if (! polylines) {
INFO("BoostXmlGmlInterface::addPolylinesToPropertyTree(): "
"No polylines within the geometry \"%s\".", _exportName.c_str());
if (!polylines || polylines->empty())
{
INFO(
"BoostXmlGmlInterface::addPolylinesToPropertyTree(): "
"No polylines within the geometry \"%s\".",
_exportName.c_str());
return;
}
......
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