Skip to content

Can we improve the country borders file? #2394

Closed

Description

@easbar

Not sure if the current file even needs improvement, but this topic came up here:

#2392 (comment)

Activity

  1. otbutz commented on Sep 24, 2021

    @otbutz
    Contributor

    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.

  2. easbar commented on Sep 24, 2021

    @easbar
    MemberAuthor

    yielded a 5.4MB file.

    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.

  3. karussell commented on Sep 10, 2022

    @karussell
    Member

    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:

      "ISO3166-1:alpha2": "BE",
      "maxspeed:living_street": "20",
      "maxspeed:motorway": "120",
      "maxspeed:rural": "90",
      "maxspeed:urban": "50",
    
  4. otbutz commented on Sep 12, 2022

    @otbutz
    Contributor

    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

  5. karussell commented on Sep 12, 2022

    @karussell
    Member

    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).

  6. otbutz commented on Sep 12, 2022

    @otbutz
    Contributor

    To me it looks "enough high precision".

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions