Come selezionare due punti su una mappa e tracciarne il profilo

salve, ho una mappa creata con

gmt set FORMAT_GEO_MAP = ddd.xx
gmt makecpt -H -Cpink,red,orange,yellow,green,blue,violet -T-10,0,5,10,15,25,35,45 > file.cpt
gmt coast -R13.17/13.33/42.50/42.63 -JM12 -B -W0.1p -Ggray -Slightblue
sort -n -k 6.1 -r $fin1 | gmt plot -W -i3,4,5,14+s0.08 -h2 -Scc -Cfile.cpt

vorrei poter selezionare due punti scelti da me e far passare una retta tra essi, come posso fare?
Utilizzo GMT6.1.1
Grazie in anticipo!!

Translate ?

gmt plot -W << EOF 
x1 y1
x2 y2
EOF

Maybe you can use a translation service like DeepL (very, very good) if you are not at ease with English. More polite than just post in your on language.

I would like to be able to select two points (chosen by me) and pass a line between them, what can I do?

I tried, but doesn’t work:
gmt plot -W << EOF
x1 y1
x2 y2
EOF

can I use ’ gmt mapproject’? how?

thanks and sorry for my rusty english!

You sure ? Can you try that :

gmt begin test png
gmt plot -R0/10/0/10 -JX10c -Wthick,red,.- << EOF
2 3
6 4
EOF
gmt basemap -Bxaf+l"x" -Byaf+l"y" -B+t"test"
gmt end show

(eventually look at -A option)

Ciao, non so se è off-topic la mia riposta.
Comunque io ho tracciato un profilo topografico fra due punti long/lat, dove -C è il punto di partenza e -E è la fine. Volendo puoi farlo anche impostando punto di partenza, angolo e lunghezza del profilo.

gmt project -Clong/lat -Elong/lat -G1 -Q > tracks1.point.xy
cat tracks1.point.xy | awk ‘{print $0}’ | gmt grdtrack -Gxxxx.grd -h > tracks1.point.xyz

ciao