Write GDAL's GMT/OGR ASCII vector format, retaining polygon holes, feature attributes, and CRS metadata. GMT itself is not needed to export.
Details
Output coordinates are WGS84 longitude/latitude (EPSG:4326). Multipart features are split into polygon records with repeated attributes; interior rings remain holes. Dateline crossings are split before export. Use GMT 6 `gmt plot file.gmt -R... -J...` to draw the result. This is a vector exchange helper, not a wrapper for GMT's plotting or grid modules.
Examples
Show/hide R code
path <- tempfile(fileext = ".gmt")
write_gmt(get_reporting_areas("541"), path)
unlink(path)