Merge pull request #790 from mapbox/json-parser-line-numbers

Fix line numbers in GeoJSON feature parsing error messages
This commit is contained in:
Eric Fischer 2019-08-30 15:58:14 -07:00 committed by GitHub
commit 33b055bf93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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