gmt2kml does not honor ->output_file option
|Target version:||Candidate for next bugfix release|
When using gmt2kml via the API, one cannot define the output file to be something other than stdout.Using the '>' option, via:
sprintf(str,"contour.ctab -W3p -C./wecom.cpt -Ag0 -Fl ->./pscoast_test.kml"); ret = GMT_Call_Module(GMT, "gmt2kml", GMT_MODULE_CMD, str);
still writes to stdout. This option worked fine for 'pscontour', 'pscoast', and 'psscale'.
#1 Updated by Paul over 3 years ago
- Status changed from New to Resolved
The i/o section has now been rewritten to use the GMT_Put_Record API function. The original ported from GMT4 only used printf to stdout and bypassed the entire API. The updated version passes the tests we have; let me know if you notice any problems. In r12690.