NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

How can I get/extract the names of cities in Nigeria with their latitude, longitude and boundaries (Max Lat, Max long, min lat and min long). Any help (in the simplest words) will be highly appreciated.

asked 23 Oct '15, 22:17

Sprime's gravatar image

Sprime
37338
accept rate: 0%


I must say that Nigeria will be a tough region. I'm afraid the boundaries you want probably won't be complete in Nigeria.

Secondly, it would depend on which boundaries you want. I see that most rough residential areas are available, but I see no administrative boundaries.

In any case, you can start with the city names, their lat and lon. It's rather simple with overpass, just execute this query: http://overpass-turbo.eu/s/ceG

Getting the bounding box will quite be a bit harder. You could use Overpass to extract all residential landuses from OSM, and bind them to the city names using some GIS software (like qGIS). But Overpass doesn't seem to treat landuse areas as areas, so you can't perform is_in queries on it, which makes it a whole lot harder.

permanent link

answered 24 Oct '15, 18:26

Sanderd17's gravatar image

Sanderd17
1.1k51637
accept rate: 31%

Thank you very much

(28 Oct '15, 12:25) Sprime

You can go to the webservice from user Wambacher and download some boundary data in different format, like raw OSM XML, shapefile or geoJSON.

Choose "Nigeria" from the tree menu on the left screen side, and open its subtree structure to select smaller regions with higher admin_level.

You have to be logged in to that webservice with your OSM account credentials via OAuth to download data.

permanent link

answered 26 Oct '15, 19:20

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

Thank you very much

(28 Oct '15, 12:25) Sprime

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×85

question asked: 23 Oct '15, 22:17

question was seen: 4,993 times

last updated: 28 Oct '15, 12:25

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum