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

[closed] OSM Coordinates issue: How to convert Lat/Lon to pixel coordinate ?

1
1

Hi Everybode ! I have a question about converting Lat/Lon to pixel Coordinate. I know to convert from Lat/Lon to map tile ( x,y ). But how i can get pixel in map tile(image) corresponding with the Lat/Lon.

Example : I have a lat/lon : 21.032644/105.852556 at zoom 12.

So maptile is x/y = 3252/1803 ( maptile size 256x256).

What pixel in tile image corresponding the Lat/lon ? How to determine it ?

asked 26 Nov '10, 05:57

haxoan's gravatar image

haxoan
15112
accept rate: 0%

closed 26 Nov '10, 09:22

TomH's gravatar image

TomH ♦♦
3.3k83943

The question has been closed for the following reason “Duplicate Question” by TomH 26 Nov ‘10, 09:22


One Answer:

1

That has already been aseked and answered here. Then next time before you ask a new question please check the documentation and this help system for existing explanations.

answered 26 Nov '10, 06:48

petschge's gravatar image

petschge
8.3k217398
accept rate: 21%

thanks you very much !

(26 Nov '10, 07:30) haxoan

Can you show the detailed answer? in the link you posted nothing clear

(14 Oct '21, 16:08) Seghier

OSZAR »