这是indexloc提供的服务,不要输入任何密码
Skip to content

Automatically generate unique feature ID #614

@ryanbaumann

Description

@ryanbaumann

Feature Request

Add a Tippecanoe option to automatically generate an integer unique feature id. --generate-id.

Ideal scenario

  • If a geojson source contains an id value, use the specified id value in the tiles generated in Tippecanoe
  • If a geojson source does not contain an id value, automatically generate one by default.
  • Expose a Tippecanoe option to disable automatic feature id generation if it doesn't exist
  • Expose an option to promote a property value from a feature to an id value, just like geojson-vt allows Åuto-generation and promotion options for Feature Ids geojson-vt#109 cc/ @asheemmamoowala

Use 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 feature id values in their geojson data source before passing to Tippecanoe.

cc/ @ericfischer

Reference: mapbox/mapbox-gl-js#6974

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions