[GRASS-dev] QGIS winGRASS blank space problem
Glynn Clements
glynn at gclements.plus.com
Wed Jun 6 10:23:19 EDT 2007
Hamish wrote:
> > Also, I would be inclined to clean up the above by looping over the
> > column names i.e.:
> >
> > (
> > for var in n min max range mean stddev variance cf_var sum ; do
> > eval val=\${$var}
> > if [ $DBFDRIVER -eq 1 ] ; then
> > col="`echo ${COLPREFIX}_${var}| cut -b1-10`"
> > else
> > col="${COLPREFIX}_${var}"
> > fi
> > echo "UPDATE $VECTOR SET ${col}=${val} WHERE cat=$i;"
> > ) | db.execute database=$DB_DATABASE driver=$DB_SQLDRIVER
>
> yes, but in that case you'd have to do something about cf_var:
>
> > echo "UPDATE $VECTOR SET ${COLPREFIX}_cf_var=$coeff_var WHERE cat=$i;"
Just add:
cf_var=$coeff_var
after r.univar is run.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list