Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/small_ept_poly_change'
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Sep 25, 2019
2 parents b3c58e2 + 72321f8 commit 19317ab
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions io/EptReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,17 +262,11 @@ void EptReader::initialize()
poly.transform(getSpatialReference());

std::vector<Polygon> polys = poly.polygons();
if (polys.size())
for (auto p: polys)
{
exploded.emplace_back(p);
}
exploded.insert(exploded.end(),
std::make_move_iterator(polys.begin()),
std::make_move_iterator(polys.end()));
}

if (exploded.size())
m_args->m_polys.clear();
for (auto p: exploded)
m_args->m_polys.emplace_back(p);
m_args->m_polys = std::move(exploded);

try
{
Expand Down

0 comments on commit 19317ab

Please sign in to comment.