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

fixed issue with non-unique points at beginning and end of polyline

parent 088f3e48
No related branches found
No related tags found
No related merge requests found
......@@ -483,6 +483,11 @@ bool SwmmInterface::convertSwmmInputToGeometry(std::string const& inp_file_name,
i--;
}
}
if (line->getPointID(0) == line->getPointID(line->getNumberOfPoints()-1))
{
line->removePoint(line->getNumberOfPoints()-1);
line->addPoint(line->getPointID(0));
}
}
geo_objects.addPolylineVec(std::move(lines), geo_name, line_id_map);
}
......
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