Skip to content

Commit

Permalink
Merge pull request #44 from adrien-berchet-forcity/bugfix_skipped_emp…
Browse files Browse the repository at this point in the history
…ty_geometries

bugfix: skip empty geometries.
  • Loading branch information
hugoledoux committed Jun 3, 2016
2 parents 7bac226 + 6c7b0ee commit 284aba6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IOWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ bool IOWorker::addToTriangulation(Triangulation &triangulation, TaggingVector &e
// Reads all features in this layer
OGRFeature *feature;
while ((feature = dataLayer->GetNextFeature()) != NULL) {
if (!feature->GetGeometryRef()) continue;

// STEP 1: Get polygons from input
std::vector<std::list<Point> > outerRingsList;
Expand Down

0 comments on commit 284aba6

Please sign in to comment.