[GRASS-user] v.rast.stats over a large vector file

Markus Metz markus.metz.giswork at googlemail.com
Mon Nov 29 02:31:58 EST 2010


Hamish wrote:
>
> ps- v.rast.stats2 from svn addons should now be working for all
>
Unfortunately not, I still get an awk error about an unterminated string.

Now that the shebang is #!/bin/bash, is the original way to create an
array now safe?

--- v.rast.stats2	(revision 44471)
+++ v.rast.stats2	(working copy)
@@ -347,7 +347,7 @@
 done

 # create array with new column names
-col=`cat "$COLNAMETMP" | tr '\n' ' '`
+col=(`cat "$COLNAMETMP" | tr '\n' ' '`)

 # create SQL file for extended and normal statistics
 g.message -v "Creating SQL file ..."


Markus M


More information about the grass-user mailing list