<div dir="ltr">First step, make sure you are not crossing over.<div><br></div><div>You say x y but latitude longitude is y x.</div><div><br></div><div>All the best</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Aug 18, 2025 at 6:40 AM Luca Bertoncello <<a href="mailto:lucabert@lucabert.de">lucabert@lucabert.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi list!<br>
<br>
Sorry, I'm OT, but I don't know other one that (hopefully!) can help <br>
me...<br>
<br>
So, my problem: I have a map, generated from Tiles (generated from OSM, <br>
but this is not very important).<br>
The map is NOT the whole word, just a little part.<br>
In my currently test case, about 2°x2° and this is 1792x1536 pixel.<br>
<br>
I need to calculate the X,Y position starting from the coordinates <br>
(latitude, longitude).<br>
I searched many procedures in Internet, but I cannot locate a marker at <br>
the wanted place...<br>
<br>
I tried to ignore that the word is almost a sphere and calculate the X,Y <br>
as this is flat (X and Y are the size of the map related to the delta of <br>
coordinates), but the position is always wrong.<br>
<br>
Now, I'm not very good (AKA: very bad!) in geometry, so I really don't <br>
know how to solve my problem.<br>
<br>
I'm working in PHP, but a generic example of the procedure is enough.<br>
<br>
Can someone help me?<br>
<br>
Thanks a lot<br>
Luca Bertoncello<br>
(<a href="mailto:lucabert@lucabert.de" target="_blank">lucabert@lucabert.de</a>)<br>
</blockquote></div>