mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Fix line numbers in GeoJSON feature parsing error messages
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## 1.34.5
|
||||||
|
|
||||||
|
* Fix line numbers in GeoJSON feature parsing error messages
|
||||||
|
|
||||||
## 1.34.4
|
## 1.34.4
|
||||||
|
|
||||||
* Be careful to avoid undefined behavior from shifting negative numbers
|
* Be careful to avoid undefined behavior from shifting negative numbers
|
||||||
|
|||||||
@@ -269,6 +269,7 @@ struct json_serialize_action : json_feature_action {
|
|||||||
std::string layername;
|
std::string layername;
|
||||||
|
|
||||||
int add_feature(json_object *geometry, bool geometrycollection, json_object *properties, json_object *id, json_object *tippecanoe, json_object *feature) {
|
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) {
|
if (geometrycollection) {
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
for (size_t g = 0; g < geometry->length; g++) {
|
for (size_t g = 0; g < geometry->length; g++) {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#ifndef VERSION_HPP
|
#ifndef VERSION_HPP
|
||||||
#define VERSION_HPP
|
#define VERSION_HPP
|
||||||
|
|
||||||
#define VERSION "v1.34.4"
|
#define VERSION "v1.34.5"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user