Comment on What is the easiest way to convert latitude and longitude to a point on a jpeg map?

AbouBenAdhem@lemmy.world ⁨1⁩ ⁨week⁩ ago

If you use a plate carrée projection (in which all lines of latitude and longitude are rectangular and equal), it’s a simple linear formula:

x = (longitude + 180) * (map width / 360)
y = (latitude + 90) * (map height / 180)

source
Sort:hotnewtop