[go: up one dir, main page]

Menu

[e39a77]: / test / gpx2gpx.c  Maximize  Restore  History

Download this file

16 lines (14 with data), 437 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include <stdio.h>
#include <gpx.h>
#include <viklayer.h>
int main(int argc, char *argv[])
{
g_type_init ();
VikLayer *vl = vik_layer_create (VIK_LAYER_TRW, NULL, NULL, 0);
VikTrwLayer *trw = VIK_TRW_LAYER (vl);
a_gpx_read_file(trw, stdin);
a_gpx_write_file(trw, stdout);
// NB no layer_free functions directly visible anymore
// automatically called by layers_panel_finalize cleanup in full Viking program
return 0;
}