# GPS points plotting on GMT.jl

**URL:** <https://forum.generic-mapping-tools.org/t/gps-points-plotting-on-gmt-jl/174>\
**Category:** GMT.jl Q&A\
**Created:** [January 6, 2020, 11:48pm UTC](https://forum.generic-mapping-tools.org/t/gps-points-plotting-on-gmt-jl/174 "2020-01-06T23:48:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhg](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@dhg](https://forum.generic-mapping-tools.org/u/dhg)\
**Post date:** [January 6, 2020, 11:48pm UTC](https://forum.generic-mapping-tools.org/t/gps-points-plotting-on-gmt-jl/174/1 "2020-01-06T23:48:20Z")

</div>

Dear all,

I would like to plot the GPS points (latitude and longitude) on satellite map similar to this:

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/a52d2a33ef9b67b9dc606646de28988f1e90eacf.jpeg)

It is best if the answer is in GMT.jl because I am using Julia programming language

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [January 7, 2020, 12:13am UTC](https://forum.generic-mapping-tools.org/t/gps-points-plotting-on-gmt-jl/174/2 "2020-01-07T00:13:02Z")

</div>

OK, simple in principle. But you need to have the base image as a referenced image (e.g. a GeoTIFF image but not mandatory). Do you have one?

---

<div class="post-metadata">

**Author:** ![dhg](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@dhg](https://forum.generic-mapping-tools.org/u/dhg)\
**Post date:** [January 7, 2020, 4:19am UTC](https://forum.generic-mapping-tools.org/t/gps-points-plotting-on-gmt-jl/174/3 "2020-01-07T04:19:03Z")

</div>

Hi Joaquim

No, I do not have any basemap file (or image). I just took a screenshot from Googlemaps to explain what I am looking for.  
Do I have to have a basemap image? I am seeking a simple way to visualize the points

Thank you

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [January 7, 2020, 12:15pm UTC](https://forum.generic-mapping-tools.org/t/gps-points-plotting-on-gmt-jl/174/4 "2020-01-07T12:15:11Z")

</div>

Well, if you do not have one your map can’t have it. You could use the [Global Earth Relief Grids](https://docs.generic-mapping-tools.org/dev/datasets/earth_relief.html), but I’m showing here only how to plot three invented positions

```auto
# Create a text record that will serve both to point the GPS positions and the text
pts = text_record([-84.560 42.725; -84.418 42.783; -84.450 42.681],["GPS 1", "GPS 2", "GPS 3"]);

# Plot the positions
plot(pts, limits=(-84.6,-84.4,42.66,42.8), proj=:Merc, marker=:circle, fill=:blue, ms=0.4)

# and plot the text offset by 1 cm up
text!(pts, font=(14,:blue),offset=(0,1), show=true, fmt=:png)

```

 ![GMTjl_tmp](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/eaaebca34826fdfea60e41724fb6817757af9918.png)
