I found after updating to Ubuntu 7.10 (gutsy-gibbon) that the gpsman didn't
use the same output format for shapefiles. Attached is a patch.
I haven't tested to see if this command structure applies to older versions
of gpsman.
-Lance KJ5O
--
J. Lance Cotton, KJ5O
[EMAIL PROTECTED]
http://kj5o.lightningflash.net
Three Step Plan: 1. Take over the world. 2. Get a lot of cookies. 3. Eat the
cookies.
diff -ur xastir/src/main.c xastir-gpsman/src/main.c
--- xastir/src/main.c 2007-08-20 22:10:14.000000000 -0500
+++ xastir-gpsman/src/main.c 2007-10-24 10:37:13.000000000 -0500
@@ -14929,7 +14929,7 @@
// Set up the postfix string. The files will be created in the
// "~/.xastir/gps/" directory.
xastir_snprintf(postfix, sizeof(postfix),
- "Shapefile_2D %s/",
+ "Shapefile dim=2 %s/",
get_user_base_dir("gps"));
input_param = atoi((char *)arg);
@@ -14942,7 +14942,7 @@
switch (input_param) {
case 1: // Fetch track from GPS
- // gpsman.tcl -dev /dev/ttyS0 getwrite TR Shapefile_2D track.date
+ // gpsman.tcl -dev /dev/ttyS0 getwrite TR Shapefile dim=2
track.date
// fprintf(stderr,"Fetch track from GPS\n");
@@ -14975,7 +14975,7 @@
break;
case 2: // Fetch route from GPS
- // gpsman.tcl -dev /dev/ttyS0 getwrite RT Shapefile_2D routes.date
+ // gpsman.tcl -dev /dev/ttyS0 getwrite RT Shapefile dim=2
routes.date
// fprintf(stderr,"Fetch routes from GPS\n");
@@ -15007,7 +15007,7 @@
break;
case 3: // Fetch waypoints from GPS
- // gpsman.tcl -dev /dev/ttyS0 getwrite WP Shapefile_2D
waypoints.date
+ // gpsman.tcl -dev /dev/ttyS0 getwrite WP Shapefile dim=2
waypoints.date
// fprintf(stderr,"Fetch waypoints from GPS\n");
@@ -15039,7 +15039,7 @@
break;
case 4: // Send track to GPS
- // gpsman.tcl -dev /dev/ttyS0 readput Shapefile_2D track.date TR
+ // gpsman.tcl -dev /dev/ttyS0 readput Shapefile dim=2 track.date
TR
fprintf(stderr,"Send track to GPS\n");
fprintf(stderr,"Not implemented yet\n");
@@ -15048,7 +15048,7 @@
break;
case 5: // Send route to GPS
- // gpsman.tcl -dev /dev/ttyS0 readput Shapefile_2D routes.date RT
+ // gpsman.tcl -dev /dev/ttyS0 readput Shapefile dim=2 routes.date
RT
fprintf(stderr,"Send route to GPS\n");
fprintf(stderr,"Not implemented yet\n");
@@ -15057,7 +15057,7 @@
break;
case 6: // Send waypoints to GPS
- // gpsman.tcl -dev /dev/ttyS0 readput Shapefile_2D waypoints.date
WP
+ // gpsman.tcl -dev /dev/ttyS0 readput Shapefile dim=2
waypoints.date WP
fprintf(stderr,"Send waypoints to GPS\n");
fprintf(stderr,"Not implemented yet\n");
_______________________________________________
Xastir-dev mailing list
[email protected]
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir-dev