Bug #473

gmt2kml does not honor ->output_file option

Added by Paul over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:2013-12-31
Priority:NormalDue date:
Assignee:Paul% Done:

0%

Category:-
Target version:Candidate for next bugfix release
Affected version:5.1.0 Platform:

Description

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'.

Associated revisions

Revision 12690
Added by Paul over 3 years ago

Address issue #473 gmt2kml

History

#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.

#2 Updated by Paul over 3 years ago

  • Status changed from Resolved to Closed

Closed as fixed.

Also available in: Atom PDF