I want to create an image showing the location of something and I know the GPS coordinates. What’s the easiest workflow to show the location of those coordinates on a map?

Edit: I don’t have a map image chosen yet.

  • AbouBenAdhem@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    3 hours 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)

    (Assuming west and south coordinates are negative, and all degrees are expressed as decimals.)