diff --git a/CHANGELOG.md b/CHANGELOG.md index e70f9546..76226c7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.29.2 + +* Be careful to remove null attributes from prefilter/postfilter output + ## 1.29.1 * Add --use-source-polygon-winding and --reverse-source-polygon-winding diff --git a/geojson.cpp b/geojson.cpp index 6d54049f..514ecbee 100644 --- a/geojson.cpp +++ b/geojson.cpp @@ -341,7 +341,7 @@ void parse_json(struct serialization_state *sst, json_pull *jp, int layer, std:: json_object *id = json_hash_get(j, "id"); json_object *geometries = json_hash_get(geometry, "geometries"); - if (geometries != NULL) { + if (geometries != NULL && geometries->type == JSON_ARRAY) { size_t g; for (g = 0; g < geometries->length; g++) { serialize_geojson_feature(sst, geometries->array[g], properties, id, layer, tippecanoe, j, layername); diff --git a/version.hpp b/version.hpp index a3433c95..894b19fb 100644 --- a/version.hpp +++ b/version.hpp @@ -1,6 +1,6 @@ #ifndef VERSION_HPP #define VERSION_HPP -#define VERSION "tippecanoe v1.29.1\n" +#define VERSION "tippecanoe v1.29.2\n" #endif