I was wondering if you could help, I have several shape files that I would like to have in my GMT maps. Is it possible to have them read an ploted ? I have try exporting them as xy.txt files and plot them with psxy and plot commands but I am getting not a nice image.
gmt begin audemardf_fallas pdf,png
gmt coast -JM30c -R-75/-55/0/15 -Wfaint,blue -Gwhite -Sazure -Baf -N1/thick,black
gmt psxy audemardf_fallas_c1.txt -JM30c -R-75/-55/0/15 -Baf -Wfaint,red,dash
gmt end show
./audemardf_fallas.sh: line 1: !#usr/bin/env: No such file or directory
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Unable to write feature 434 from layer Fallas_Cuaternarias_Triangulo_2.
ERROR 1: Terminating translation prematurely after failed
translation of layer Fallas_Cuaternarias_Triangulo_2 (use -skipfailures to skip errors)
plot [ERROR]: System call [ogr2ogr -mapFieldType Integer64=Integer -f "OGR_GMT" /var/folders/q4/f3vkf3lj7cg8fx8tp866cmt00000gn/T/gmt_ogr_3440.gmt Fallas_Cuaternarias_Triangulo_2.shp] FAILED with error 256.
plot [ERROR]: Cannot open file Fallas_Cuaternarias_Triangulo_2.shp
bash-3.2$
bash-3.2$ ```

The .shx is the index file and should not be mandatory to read the shape file. If you can make that shapefile available we can look (see if my gdal is more permissive?). But only within two couple of hours.
My QGIS version don’t have GMT format to export which QGIS is this version is it MacOsX?
I try usin ESRI Shapefile format , and the plot command… and is not working
for shp in *.shp
do
nombre=basename $shp .shp
ogr2ogr -f “GMT” ${nombre}.gmt $shp -skipfailures
done
It generates these ones but just ignore them:
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
ERROR 1: Features without geometry not supported by GMT writer.
Warning 1: The output driver does not seem to natively support Integer64 type for field ID. Converting it to Real instead. -mapFieldType can be used to control field type conversion.
Warning 1: The output driver does not seem to natively support Integer64 type for field ID. Converting it to Real instead. -mapFieldType can be used to control field type conversion.
ERROR 1: Features without geometry not supported by GMT writer.
Check the enclosed image, plotted with GMT (6!!!) and QGIS.
Muchas gracias! lo voy a intentar!, la imagen en GMT tiene algunos detalles sigue conectando algunos polĂgonos que no se encuentran conectados entre ellos realmente.
Sip, tienes razón, well, some features are not connected because it’s a quick plot, start playing with that piece of code to get the gmt files first, once you have them you need to plot them separately. Please keep us updated about your progress.