You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include <gmt.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
void* gmtapi;
|
|
|
|
char* text="GMT";
|
|
|
|
char* args="-R130/160/40/60 -JM12c -Xa2c -Ya2c -B5/5/swNE ->/proc/cmdline";
|
|
|
|
struct GMT_OPTION* opts;
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
gmtapi=GMT_Create_Session(text,2,1,0);
|
|
|
|
opts=GMT_Create_Options(gmtapi,0,args);
|
|
|
|
ret=GMT_Call_Module(gmtapi,"psbasemap",GMT_MODULE_OPT,opts);
|
|
|
|
printf("%i\n",ret);
|
|
|
|
|
|
|
|
GMT_Destroy_Options(gmtapi,&opts);
|
|
|
|
GMT_Destroy_Session(gmtapi);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|