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
    16
    ·
    edit-2
    2 months 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.)

  • ShimitarA
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 months ago

    You need to know the map projection and coordinate system…

    After you know all that, you can use some math to convert.

      • ShimitarA
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        2 months ago

        Op didn’t specify Mercator projection… If referring to paper maps scanned or something similar, everything might be. Maybe UTM maybe worse

      • ShimitarA
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        2 months ago

        Ooenstreetmap Google Maps or Scan your own. I don’t think there are other choices.

  • grandel@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    2 months ago

    Can you enter them into open street maps or google maps and take a screenshot?

  • Don_Dickle@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    Isn’t there like a convertor for this…not being rude but I had to do this a while back. Let me go and see if I can find it against. It would convert anything to any size. How big is your jpeg map btw?