Skip to content
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

Using non-numeric feature ID #357

Closed
cyang-el opened this issue Jan 25, 2017 · 4 comments
Closed

Using non-numeric feature ID #357

cyang-el opened this issue Jan 25, 2017 · 4 comments

Comments

@cyang-el
Copy link

Hi,
I was trying to convert some geojson to mbtiles with zoom-level setups, noticed some of the geojson like this have string as their feature ID, which tippecanoe warns: Warning: Can't represent non-numeric feature ID "xx"

Wondering is there a way for tippecanoe to use string feature ID directly? before trying to manually cast them to numeric types.

Thanks :)

@e-n-f
Copy link
Contributor

e-n-f commented Jan 25, 2017

This is a limitation of the vector tile format specification: the feature ID is defined only as an optional integer. I think a future version of the spec could allow non-numeric IDs, but there is no way to represent them now.

@e-n-f e-n-f closed this as completed Jan 25, 2017
@atsuidesu
Copy link

Is the vector tile format specification going to change soon to support non-numeric IDs? The last comment was in Jan 2017, over 2 years ago. i.e. tippecanoe will support non-numeric IDs soon? The map GL setFeatureState api seems to imply the feature id can be either number or string at the moment and it is not consistent with the current state of tippecanoe.

@e-n-f
Copy link
Contributor

e-n-f commented Feb 26, 2019

String IDs are supported in the #611 development branch for version 3 of the vector tile spec.

@bilics
Copy link

bilics commented Dec 11, 2021

Hi,

I am still getting a

Warning: Attribute "hex_id"="123123ABCBC" as feature ID is not a number

when using Tippecanoe.

Has this been fixed?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants