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 am a bit torn about the file size. Simply converting the file to geojson using JOSM yielded a 5.4MB file. Our current borders file is just above 1.3MB but i haven't investigated further if the result could be further trimmed via e.g mapshapper.
Ideally we shouldn't go much higher than 1.5MB as we bundle it in the jar.
Did you check the number of decimal points? And maybe meta information like all the different name tags? The current file is so small also because we removed these, not just because we simplified the geometry.
Maybe it would also be useful to see some examples where the JOSM file is an improvement compared to our current file.
Not sure if the current file even needs improvement
Yeah, we should improve this. Near the border the country info is otherwise too ugly. See also this issue. Probably using the original naturalearth file would be already an improvement.
Did you check the number of decimal points?
I removed the many zeros it had like in 15.34823000000 but the file is still 5.2MB (!?) The remaining 5 digits after the comma are necessary IMO. Then I removed all whitespace and this leads to under 1MB (and in the jar it is zipped I think -> <340KB).
btw: the file has some nice info regarding speeds per country already:
I gave the naturalearth dataset a shot but quickly gave up because there were quite a few things which need to be adjusted manually. e.g removing US state boundaries
Ok, and did you have a look into the json-export of the mentioned boundaries.osm file? To me it looks "enough high precision". But I think we would have to adapt our import to handle LineStrings and Polygons (or further convert the format of this file).
The precision is a quite a bit higher without going completely over board with the size of the file. It would also be good to use a shared dataset instead of having to cultivate our own. Ideally we are able to script the steps necessary so that we can easily update if a new version of the JOSM boundaries file is released.
But I think we would have to adapt our import to handle LineStrings and Polygons (or further convert the format of this file).
Our current dataset is already using (multi)polygons. The converted version of the JOSM boundaries looks similar at first glance.
The only information not present are the alpha3 countrycodes but that is probably something which should be upstreamed.
Activity
otbutz commentedon Sep 24, 2021
I am a bit torn about the file size. Simply converting the file to geojson using JOSM yielded a 5.4MB file. Our current borders file is just above 1.3MB but i haven't investigated further if the result could be further trimmed via e.g mapshapper.
Ideally we shouldn't go much higher than 1.5MB as we bundle it in the jar.
easbar commentedon Sep 24, 2021
Did you check the number of decimal points? And maybe meta information like all the different name tags? The current file is so small also because we removed these, not just because we simplified the geometry.
Maybe it would also be useful to see some examples where the JOSM file is an improvement compared to our current file.
karussell commentedon Sep 10, 2022
Yeah, we should improve this. Near the border the country info is otherwise too ugly. See also this issue. Probably using the original naturalearth file would be already an improvement.
I removed the many zeros it had like in 15.34823000000 but the file is still 5.2MB (!?) The remaining 5 digits after the comma are necessary IMO. Then I removed all whitespace and this leads to under 1MB (and in the jar it is zipped I think -> <340KB).
btw: the file has some nice info regarding speeds per country already:
otbutz commentedon Sep 12, 2022
I gave the naturalearth dataset a shot but quickly gave up because there were quite a few things which need to be adjusted manually. e.g removing US state boundaries
karussell commentedon Sep 12, 2022
Ok, and did you have a look into the json-export of the mentioned boundaries.osm file? To me it looks "enough high precision". But I think we would have to adapt our import to handle LineStrings and Polygons (or further convert the format of this file).
otbutz commentedon Sep 12, 2022
The precision is a quite a bit higher without going completely over board with the size of the file. It would also be good to use a shared dataset instead of having to cultivate our own. Ideally we are able to script the steps necessary so that we can easily update if a new version of the JOSM boundaries file is released.
Our current dataset is already using (multi)polygons. The converted version of the JOSM boundaries looks similar at first glance.
The only information not present are the alpha3 countrycodes but that is probably something which should be upstreamed.