You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the following command:
npx mapshaper-xl 24gb perceelgrenzen.geojson -simplify 51% -filter-islands remove-empty -drop fields=id -o precision=0.00001 geojson-type=FeatureCollection perceelgrenzen_simpel.geojson
By using the -drop fields=id I achieve to eliminate all properties for each feature in order to minimise the file size.
Mapshaper formats this situation with:
"properties":null
Where some services, like Mapbox, expect:
"properties":{}
Are you able to change mapshaper's notation when there are no properties?
Manually editing the simplified 3Gb file is a bit cumbersome.
Regards.
The text was updated successfully, but these errors were encountered:
"properties": null is valid GeoJSON, and mapshaper will continue to use this as the default for features with no data properties. I'm open to adding an option to the -o command to use {} instead of null. We'll need a good name for that option, do you have any suggestions?
Hi Matthew,
I use the following command:
npx mapshaper-xl 24gb perceelgrenzen.geojson -simplify 51% -filter-islands remove-empty -drop fields=id -o precision=0.00001 geojson-type=FeatureCollection perceelgrenzen_simpel.geojson
By using the -drop fields=id I achieve to eliminate all properties for each feature in order to minimise the file size.
Mapshaper formats this situation with:
"properties":null
Where some services, like Mapbox, expect:
"properties":{}
Are you able to change mapshaper's notation when there are no properties?
Manually editing the simplified 3Gb file is a bit cumbersome.
Regards.
The text was updated successfully, but these errors were encountered: