I am new at using GMT (Generic Mapping Tools) and I am wondering if it can use a shapefile of a hydrographical network.
Can I perhaps change my .shp to .gmt format and combine it with a GMT map? If so, how?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Convert from shape to gmt use this
example code :
ogr2ogr -f "GMT" Hudson_bounds.gmt Hudson_bounds.shp
In GDAL 2.2.1 the call is:
ogr2ogr -f "OGR_GMT" Hudson_bounds.gmt Hudson_bounds.shp
Shapefiles can be converted to xy segment files using QGIS. Just right click on the shapefile in QGIS and then Save As -> Format "Generic Mapping Tools [GMT]". Use WGS84 as the CRS, give a file name and click OK.
This is highly userfriendly when dealing with multi segment shapefiles.