-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically generate unique feature ID #614
Comments
Thanks for the idea. Thinking out loud, there are basically two ways that this could go:
Sequential assignment is probably preferable (and would generate smaller tiles), but has the complication that when reading in parallel with Hash assignment is stable both across runs and across feature insertions and deletions, but has the risk of assigning the same ID to multiple features that happen to hash the same, and the certainty of assigning the same ID to duplicated features within the input. They both have the problem of how to avoid accidentally reusing an ID that was also assigned manually. So I think this will have to be an additional stage in between parsing and tiling, after the complete set of manually-assigned IDs is known, and the complete feature sequence is known. I'm still not sure whether it is better to hash (with increments when duplicate hashes are detected) or to use an incrementing counter. |
#615 adds the most basic |
@ericfischer when can I expect to use this? I tried installing with brew but gives me version 1.30.1 as latest. |
Sorry, I only just tagged the release (https://github.com/mapbox/tippecanoe/releases/tag/1.30.3). It looks like https://github.com/Homebrew/homebrew-core/blob/master/Formula/tippecanoe.rb gets updated by a bot for new releases, but I'm not sure how long that cycle takes. |
Looks like this is in the homebrew version now. |
Feature Request
Add a Tippecanoe option to automatically generate an integer unique feature id.
--generate-id
.Ideal scenario
id
value, use the specifiedid
value in the tiles generated in Tippecanoeid
value, automatically generate one by default.id
generation if it doesn't existpromote
a property value from a feature to anid
value, just likegeojson-vt
allows Åuto-generation and promotion options for Feature Ids geojson-vt#109 cc/ @asheemmamoowalaUse case
FeatureStates in Mapbox GL require feature
id
values to function. Currently, Tippecanoe will not generate feature ID values for a dataset, a user must create featureid
values in their geojson data source before passing to Tippecanoe.cc/ @ericfischer
Reference: mapbox/mapbox-gl-js#6974
The text was updated successfully, but these errors were encountered: