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

Lat/long value

0

I don't understand what value the Lat/Long coordinates are in when i use the mouse Lat/long. It is not mins and seconds.

asked 27 Jan '12, 09:38

BHNZ's gravatar image

BHNZ
1111
accept rate: 0%

2

Please explain what you mean with "use the mouse Lat/Long", and give an example of such a pair of coordinates. This will make it easier for us to give you a correct answer.

(27 Jan '12, 09:47) Frederik Ramm ♦

3 Answers:

2

I suppose that you're talking about the mouse position control in OpenLayers that displays the position using the projection of the base layer (the map in this case). I suggest you to read this openlayers doc about projections.

answered 27 Jan '12, 10:08

NicolasDumoulin's gravatar image

NicolasDumoulin
3.3k42256
accept rate: 13%

1

I am guessing you are seeing decimal degrees somewhere, rather than degrees, minutes, seconds. As there are 60 seconds in a minute and 60 minutes in a degree it is fairly easy to convert between the two.

answered 27 Jan '12, 09:51

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

1

Non-decimal degrees and local grids are like miles, ounces, 12h clocks, MM/DD/YYYY, and non-unicode charsets : please make the world a favor and forget about them today.

(27 Jan '12, 11:30) Vincent de P... ♦
(27 Jan '12, 14:28) neuhausr

1

This questions as some answers on converting degree decimals to degrees, minutes and seconds https://help.openstreetmap.org/questions/10019/how-can-i-convert-this

answered 27 Jan '12, 21:19

andy%20mackey's gravatar image

andy mackey
13.2k87143285
accept rate: 4%

Source code available on GitHub .