Why not ask your question on the new OpenStreetMap Community Forum?


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

accept rate: 0%

closed 26 Nov '10, 09:22

TomH's gravatar image

TomH ♦♦

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

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.

permanent link

answered 26 Nov '10, 06:48

petschge's gravatar image

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

Follow this question

By Email:

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



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:


question asked: 26 Nov '10, 05:57

question was seen: 18,068 times

last updated: 14 Oct '21, 16:08

powered by OSQA