-
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
properties with null values get dropped #114
Comments
As far as I know there's no way to represent a null value in the vector tile format, so that's why it doesn't include the null property for the features that have "gloei": null. I am surprised, though, that you are not seeing it as a Number in the tilejson for the features that do have no-null values. I just tried
with
and got the expected metadata:
with |
The whole GeoJSON file is 2.8GB which is a bit big to attach here, but I created a new GeoJSON from the first few features and annoyingly that one works fine; it does show all the properties. I'll try some more to see if I can create a small but failing geojson. |
After working my way through the large geojson I realised something went wrong with the export and all |
Great! Glad it is working for you now. |
@ericfischer Hi, just got caught by this as well, null properties are dropped (silently), non-null properties are kept. I understand this is the accepted behaviour. For information, the library |
Oh, thanks for pointing that out, @clouddie! I think Tippecanoe is following Mapnik's behavior with null properties, but it's good to know that geojson-vt is doing something different, so we can figure out what the right thing is to do and make everything behave the same. |
Correct, the spec does not currently keep null values, by design. This is being discussed at mapbox/vector-tile-spec#62. |
* Add CODEOWNERS * Narrower list?
I've got a large GeoJSON with 1014963 features with several properties which contain NULL values together with actual numeric values. These properties get (silently) dropped from the resulting mbtiles.
Feature with a gloei-value:
and without
I specifically told tippecanoe to include 'gloei':
./tippecanoe -o licht2.mbtiles out.json -y gloei
However the resulting mbtiles doesn't include the gloei property
This is its tilejson, courtesy of tessera:
The text was updated successfully, but these errors were encountered: