gregoiredavid / france-geojson

Contours des régions, départements, arrondissements, cantons et communes de France (métropole et départements d'outre-mer) au format GeoJSON
https://france-geojson.gregoiredavid.fr
733 stars 410 forks source link

Round coordinates to 6 digits #28

Open AntoineAugusti opened 6 years ago

AntoineAugusti commented 6 years ago

Hello!

Thanks for this repository. It would be an improvement to round all coordinates to 6 digits to have smaller files and to avoid unnecessary digits:

Accuracy of latitude / longitude:

The sixth decimal place is worth up to 0.11 m: you can use this for laying out structures in detail, for designing landscapes, building roads. It should be more than good enough for tracking movements of glaciers and rivers. This can be achieved by taking painstaking measures with GPS, such as differentially corrected GPS.

From https://gis.stackexchange.com/questions/8650/measuring-accuracy-of-latitude-and-longitude

gregoiredavid commented 6 years ago

Thanks for the suggestion ! All coordinates should already be rounded to 6 digits since version 2.0.2 (https://github.com/gregoiredavid/france-geojson/releases/tag/v2.0.2)

Did you find a file where they are not ? I may have forgotten some.

AntoineAugusti commented 6 years ago

This file has more than 6 digits currently: https://raw.githubusercontent.com/gregoiredavid/france-geojson/master/metropole-version-simplifiee.geojson

AntoineAugusti commented 6 years ago

After a search with the regex \.[0-9]{6,}, I get this list:

gregoiredavid commented 6 years ago

Thank you very much for the list ! I will look into it and fix this ASAP.