Help to plot vector data in Transverse Mercator projection

Hello all,

I’m trying to plot a vector map of Costa Rica using a polygon file projected in EPSG:5367 (CRTM05), which uses a Transverse Mercator projection with coordinates in meters. I’m using GMT version 6.5.0 on Ubuntu 22.04 for this, with the following lines of code:

gmt begin costa_rica png
    gmt plot -R401658.95/431163.88/1066737.5738/1108277.69735+ue \
           -JT-84/0.0/8c "$cartodir/delimitacion2017_5k.gmt" -W0.8p,black -fp
gmt end show

The vector data I am using is in this file.

Could you help me to understand what am I missed in this try?

Thanks

Use -JX|x since your data is already projected, e.g.:

gmt plot $(gmt info delimitacion2017_5k.gmt -I1) -Gblack -Jx1:10000000 delimitacion2017_5k.gmt -png costa_rica

Thank you very much!