parse geometry collections from the pbfs; iterate geometries in buckets

This commit is contained in:
Justin R. Miller
2015-03-06 17:47:14 -08:00
committed by John Firebaugh
parent 685aa01043
commit 405137700b
9 changed files with 302 additions and 296 deletions

View File

@@ -220,10 +220,12 @@ template <class Bucket>
if (obsolete())
return;
Geometry geometry = feature->nextGeometry();
while (!geometry.is<std::false_type>()) {
GeometryCollection geometry = feature->nextGeometry();
if (geometry.size()) {
bucket->addGeometry(geometry);
geometry = feature->nextGeometry();
} else if (debug::tileParseWarnings) {
fprintf(stderr, "[WARNING] geometry is empty\n");
}
feature = filtered_layer->nextMatchingFeature();