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

find cities boundary in a specific country

0

hey, please i'm looking for the cities in my country "morocco" i tried a lot ,but i didn't find them please i need a help

asked 28 May '21, 11:13

assia's gravatar image

assia
10112
accept rate: 0%

edited 28 May '21, 14:21

TZorn's gravatar image

TZorn
12.3k764225

2

Please be more specific what you are trying to achieve and what you have already done. Please update (edit) your question with that information.

meta: firs asked in How do I extract the polygon location(lat, long) of a building?

(28 May '21, 13:03) TZorn

@TZorn hi, my question is like that : how can i get only the polygons of all cities from a specific country

(28 May '21, 13:55) assia

He specifically asked what have you tried so far! And what's exactly the problem...

(28 May '21, 14:36) H_mlet

One Answer:

1

Hi.

I think this overpass query should be a good starting point.

Regards.

answered 28 May '21, 13:37

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

-1

@H_mlet thank u so much for your comment ,can u tell me please how can i use it , for example i want the cities in this country "morocco"

(28 May '21, 14:29) assia
1

You should comment instead of adding new "answers". And please try linked query, it does just that. And please read the documentation, to be able to ask specific question.

(28 May '21, 14:35) H_mlet

Source code available on GitHub .