diff --git a/mvt.cpp b/mvt.cpp index 16f9f583..18f239d2 100644 --- a/mvt.cpp +++ b/mvt.cpp @@ -407,7 +407,8 @@ std::string mvt_tile::encode() { std::string feature_string; protozero::pbf_writer feature_writer(feature_string); - feature_writer.add_enum(3, layers[i].features[f].type); + if (layers[i].features[f].type >= 0) + feature_writer.add_enum(3, layers[i].features[f].type); std::vector sorted_tags = layers[i].features[f].tags; for (size_t v = 1; v < sorted_tags.size(); v += 2) { diff --git a/tile-join.cpp b/tile-join.cpp index 17c4aa2b..1b057577 100644 --- a/tile-join.cpp +++ b/tile-join.cpp @@ -56,6 +56,7 @@ int minzoom = 0; std::map renames; bool exclude_all = false; bool exclude_all_tile_attributes = false; +bool exclude_all_tile_geometries = false; std::vector unidecode_data; bool want_overzoom = false; @@ -323,42 +324,46 @@ void append_tile(std::string message, int z, unsigned x, unsigned y, std::map