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

Export Area - How to find coordinates

0

Hi,

I need to export an area from OSM. As I needed the exported part of the map to be a certain area e.g. 2000m x 2000m, I got coordinates for precisely that size area from Bing Maps (lat, long of each of the four points of the square).

What I don't understand is what coordinates I need to put into the "Area to Export" fields as only two lat/long values are required.

Thanks.

asked 13 Apr '13, 22:39

kerrymaid's gravatar image

kerrymaid
1333
accept rate: 0%


2 Answers:

1

You're right a bounding box has four edges with lat/lon each, resulting in four, not two lat/lon pairs. What you're missing is: The box is not rotated. That means two sides of the box are in parallel with the equator. Therefore two connected points always share either the latitude or the longitude. That's why only two lat/lon pairs suffice to describe a bounding box.

In other words you need so specify the max latitude, min latitude, max longitude and min longitude to describe a bounding box that you want to query.

answered 14 Apr '13, 22:20

konstantin's gravatar image

konstantin
61446
accept rate: 0%

0

There are four parameters in the "Area to Export" page on the OSM map. If you have the four box co-ordinates for an area then take the first number in your first box coordinate pair and put it in the first "Area to Export" field. Put the second member of the first box pair in the second field. Fill in the third and fourth "Area to Export" fields with the values from the last co-ordinate pair for your box.

answered 13 Apr '13, 23:44

Feilipu's gravatar image

Feilipu
90239
accept rate: 10%

edited 13 Apr '13, 23:45

Source code available on GitHub .