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

--use-attribute-for-id with attribute value 0 causes Warning: Can't represent too-large feature ID 0 #300

Open
mz8i opened this issue Nov 26, 2024 · 0 comments

Comments

@mz8i
Copy link

mz8i commented Nov 26, 2024

Trying to promote a numeric property to a feature ID. When the value of a property is a numeric zero, a warning is incorrectly displayed, and id is missing in the resulting feature.

Steps to reproduce:

tippecanoe -zg -o test.mbtiles --use-attribute-for-id=feature_id test.geojson

with following simple test.geojson:

{
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "properties": {
                "feature_id": 0
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
                    -104.99404,
                    39.75621
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "feature_id": 1
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
                    -104.98404,
                    39.74621
                ]
            }
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant