Skip to content

Many warnings 'Multiple countries found for way' #2663

Closed

Description

@karussell

I think since #2658 we get these errors. It seems to be mainly a Great Britain issue - could it be an issue of an overlapping border of GBR for the JOSM boundaries.osm data @westnordost?

Omitted many duplicates:

Multiple countries found for way 2783749: JEY, GBR
Multiple countries found for way 4066366: GGY, GBR
Multiple countries found for way 4965566: DNK, FRO
Multiple countries found for way 10229296: GIB, GBR
Multiple countries found for way 14143304: FLK, GBR
Multiple countries found for way 17782588: NIU, NZL
Multiple countries found for way 22058615: CYM, GBR
Multiple countries found for way 22333039: AIA, GBR
Multiple countries found for way 23087382: SHN, GBR
Multiple countries found for way 23376204: GGY, GBR
Multiple countries found for way 23565589: GBR, VGB
Multiple countries found for way 23893198: NZL, COK
Multiple countries found for way 25969150: TCA, GBR
Multiple countries found for way 25986080: IMN, GBR
Multiple countries found for way 58659323: IOT, GBR
Multiple countries found for way 59638034: BMU, GBR
Multiple countries found for way 86379854: GRL, DNK

Activity

  1. westnordost commented on Sep 27, 2022

    @westnordost

    I wouldn't call it an issue. Jersey ( JE) is simply a part of the United Kingdom. The ISO Code for the United Kingdom is GB

  2. westnordost commented on Sep 27, 2022

    @westnordost

    And to take into account country subdivisions, whether they have their own ISO-3166-1 alpha-2 (or 3) code (like GB or GBR, respectively) or "just" a ISO-3166-2 code (like GB-SCT) is something that you would likely want to do anyway because speed limits (and other rules) may vary even in country subdivisions.

    E.g. each state in the United States, Canada and Australia has completely disjunct speed limit restrictions. Scotland has slightly different speed limit restrictions. All three regions of Belgium have different speed limit restrictions. Until very recently, each state in India had own speed limit laws. Et cetera.

  3. karussell commented on Sep 27, 2022

    @karussell
    MemberAuthor

    Sure, for the default speed limit. For now I'm only focussing on ISO-3166-1 and assigning only one country to each edge (e.g. for path details). And the data says "id":"JE", so I would have assumed it is an independent country.
    But it seems that for certain countries this is not easy: wikipedia says:

    Jersey is not part of the United Kingdom

    and

    Sovereign state = United Kingdom

    One solution is to just pick the smaller-sized country and avoid logging or just turn off the logging...

  4. westnordost commented on Sep 27, 2022

    @westnordost

    Look out for FX, then

  5. otbutz commented on Sep 27, 2022

    @otbutz
    Contributor

    Judging from the different shades of blue, there are quite a few overlapping boundaries:

    https://github.com/graphhopper/graphhopper/blob/master/core/src/main/resources/com/graphhopper/countries/countries.geojson

    This also seems to include non country boundaries e.g EU

  6. otbutz commented on Sep 27, 2022

    @otbutz
    Contributor

    Greenland seems to be also part of Denmark which is IMHO wrong. Greenland is part of the Kingdom of Denmark which is a different thing.

  7. otbutz commented on Sep 27, 2022

    @otbutz
    Contributor

    @karussell could we remove non-country boundaries from the geojson for now? If we want to add subdivisions and others later on it's probably cleaner to keep them i a separate files. As for overlapping country polygons...that's a different story.

  8. karussell commented on Sep 28, 2022

    @karussell
    MemberAuthor

    This also seems to include non country boundaries e.g EU

    Yes, but this is not a problem as we currently only import countries that are in the Country enum.

    @karussell could we remove non-country boundaries from the geojson for now?

    I prefer to avoid a manual process and will compare the area for now (and suppress logging).

  9. added this to the 7.0 milestone on Sep 28, 2022
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions