Fix line numbers in GeoJSON feature parsing error messages

This commit is contained in:
Eric Fischer 2019-08-30 15:34:24 -07:00
parent d96b521570
commit fc810d4156
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
## 1.34.5
* Fix line numbers in GeoJSON feature parsing error messages
## 1.34.4
* Be careful to avoid undefined behavior from shifting negative numbers

View File

@ -269,6 +269,7 @@ struct json_serialize_action : json_feature_action {
std::string layername;
int add_feature(json_object *geometry, bool geometrycollection, json_object *properties, json_object *id, json_object *tippecanoe, json_object *feature) {
sst->line = geometry->parser->line;
if (geometrycollection) {
int ret = 1;
for (size_t g = 0; g < geometry->length; g++) {

View File

@ -1,6 +1,6 @@
#ifndef VERSION_HPP
#define VERSION_HPP
#define VERSION "v1.34.4"
#define VERSION "v1.34.5"
#endif