I have a 256x256 tile from OpenStreetMap tile server. Lets say 5/11/18.png

And I have a X,Y pixel from this reference tile (not global) where 0 < x < 256 and 0 < y < 256.

Is there any way to find the EPSG:4326 coordinates from this pixel?

Already try this but can't get the explanation.

Actually every time I ask "Convert x,y" to google I get "x,y" as being the entire tile coordinate from the grid not the pixel from the tile.

EDIT: Just to illustrate here is the image at 5/11/18.png. It is all I have. I have no way to know anything about the resolution or grids...

enter image description here

  • once you know the top left corner it is simple maths of dpiscalenumber of pixels, though the answer is likely to be in EPSG:3857 rather than EPSG:4326
    – Ian Turton
    Commented Oct 11, 2022 at 15:50
  • Huh... almost got it. So... need I to know the DPI ? How can I guarantee this? I need to calculate this from many different sources not only OSM.
    – Magno C
    Commented Oct 11, 2022 at 16:41
  • Should be defined in the tile matrix definition
    – Ian Turton
    Commented Oct 11, 2022 at 18:26
  • Sorry.. you're making assumptions. What matrix definitions? I have only a URL to a tile that's not mine.
    – Magno C
    Commented Oct 11, 2022 at 18:54
  • Then assume 96 DPI and hope for the best
    – Ian Turton
    Commented Oct 11, 2022 at 19:13


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.