Add an option to automatically assign ids to features

This commit is contained in:
Eric Fischer
2018-07-26 15:08:47 -07:00
parent 50b1eadf87
commit 6f295f29fc
8 changed files with 2235 additions and 1 deletions
+1
View File
@@ -303,6 +303,7 @@ the same layer, enclose them in an `all` expression so they will all be evaluate
### Adding calculated attributes
* `-ag` or `--calculate-feature-density`: Add a new attribute, `tippecanoe_feature_density`, to each feature, to record how densely features are spaced in that area of the tile. You can use this attribute in the style to produce a glowing effect where points are densely packed. It can range from 0 in the sparsest areas to 255 in the densest.
* `-ai` or `--generate-ids`: Add an `id` (a feature ID, not an attribute named `id`) to each feature that does not already have one. There is currently no guarantee that the `id` added will be stable between runs or that it will not conflict with manually-assigned feature IDs. Future versions of Tippecanoe may change the mechanism for allocating IDs.
### Trying to correct bad source geometry