mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 02:15:41 +02:00
Accept 0 as a feature ID in --use-attribute-for-id
strip_zeroes() removed every leading zero, so "0" became "" and never matched std::to_string(0). The ID was rejected as too large and the feature was left without an ID. Keep the final digit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0172RxhnHkNgRZ3NBrsRJZYK
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
# 2.82.1
|
||||
|
||||
* Fix `--use-attribute-for-id` rejecting an attribute value of 0 as a
|
||||
"too-large" feature ID. The leading-zero stripping used to check that the ID
|
||||
round-tripped stripped "0" down to an empty string, so the feature was left
|
||||
with no ID and kept the attribute instead.
|
||||
|
||||
# 2.82.0
|
||||
|
||||
* Fix corruption of a JSON array when a non-final element was removed from it.
|
||||
|
||||
Reference in New Issue
Block a user