I have a GPX-Track containing LatLon coordinates based on WGS84. The track should be drawn on a cropped map, and for this, I need the pixel coordinates. The map tiles are from OSM
I'm not quite sure how to do this, but I figured out a way (without implementing it yet, since I don't have the formulars right now).
أكثر...
I'm not quite sure how to do this, but I figured out a way (without implementing it yet, since I don't have the formulars right now).
- Convert LatLon to Spherical Mercator which is used by OSM
- Linear transformation spherical mercator -> pixel coordinates. For step 2., 2 identical points are needed. I guess I can use the map's corner points.
أكثر...