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

Finding country Bbox from Nominatim Database

0

I have a Nominatim database with UK data being stored. I grabbed the data from Geofabrik and installed Nominatim alongside the data import as per the Nominatim documentation.

Is there any way, from the dataset I currently have, to find the bounding box? I've read threads such as https://help.openstreetmap.org/questions/36323/how-to-export-country-bounding-boxes but I'm concerned that the bounding boxes generated from external websites may not reflect my database accurately, which would cause logic error further along down the line with my code

asked 13 Oct '16, 08:13

JamesGould's gravatar image

JamesGould
19691020
accept rate: 33%


One Answer:

0

Solved this, I downloaded the .poly files (didn't see them before, probably should have checked!) which provides an Osmosis bounding box for the dataset. I then loaded them into GeoJSON.io which provided the BBox coordinates.

This approach will only work if you're using Geofabrik's Osm.Pbf format (which most will be).

answered 13 Oct '16, 08:38

JamesGould's gravatar image

JamesGould
19691020
accept rate: 33%

Source code available on GitHub .