Add missing JSON type check; bump version number.

This commit is contained in:
Eric Fischer 2018-06-06 11:54:23 -07:00
parent c9eed0d457
commit 760a0c9209
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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);

View File

@ -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