[GRASS-user] v.out.gps

Hamish hamish_b at yahoo.com
Wed Oct 7 21:57:51 EDT 2009


Paolo:
> unfortunately  there are still errors:
> 
> v.out.gps -w input=archsites at PERMANENT type=point output=points.gpx
> ERROR: Required parameter <input> not set:
>     (Input coordinate file ('-' to read from stdin)).
> ERROR: Required parameter <input> not set:
>     (Name of input file to be imported).
> ERROR: Error reprojecting data


try this patch:


Index: scripts/v.out.gps/v.out.gps.py
===================================================================
--- scripts/v.out.gps/v.out.gps.py      (revision 39432)
+++ scripts/v.out.gps/v.out.gps.py      (working copy)
@@ -217,7 +217,7 @@
     tmp_proj = tmp + ".proj"
     tf = open(tmp_proj, 'w')
     p1 = grass.pipe_command('v.out.ascii', input = inmap, format = 'standard')
-    p2 = grass.feed_command('m.proj', flags = 'od', quiet = True, stdout = tf)
+    p2 = grass.feed_command('m.proj', input = '-', flags = 'od', quiet = True, stdout = tf)
     tf.close()
 
     lineno = 0
Index: scripts/m.proj/m.proj.py
===================================================================
--- scripts/m.proj/m.proj.py    (revision 39432)
+++ scripts/m.proj/m.proj.py    (working copy)
@@ -34,6 +34,7 @@
 #% type: string
 #% gisprompt: old_file,file,file
 #% description: Input coordinate file ('-' to read from stdin)
+#% answer: -
 #% required : yes
 #% key_desc : filename
 #%end




Hamish



      


More information about the grass-user mailing list