This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Overpass query for getting only mainland country boarders (No colonies)

0

Dear all, I am trying to get the Country borders of France from open street map using overpass turbo as follows:

[out:json]; rel[admin_level=2]["ISO3166-1"="FR"]; out geom;

is there a way to only get the country border on the European continent (Main Country borders), excluding all the hundreds of french colonial islands around the world? Thanks

asked 15 Nov '22, 17:41

jojojatt's gravatar image

jojojatt
16225
accept rate: 0%


One Answer:

1

The Area of France in Europe (including Corse) is called France métropolitaine.

So your overpass query would look like:

[out:json]; rel[admin_level=3][name="France métropolitaine"]; out geom;

See: http://overpass-turbo.eu/s/1nOq

(here is the corresponding nominatim query: https://nominatim.osm.org/ui/search.html?q=France+m%C3%A9tropolitaine that will get you the same relation https://www.openstreetmap.org/relation/1403916#map=5/42.488/15.403 )

answered 16 Nov '22, 09:49

Spiekerooger's gravatar image

Spiekerooger
3.1k22356
accept rate: 16%

edited 16 Nov '22, 10:12

Source code available on GitHub .