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
+1
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++) {