[GRASS-dev] v.rast.stats - was Re: QGIS winGRASS blank space problem

Markus Neteler neteler at itc.it
Sun Jun 24 04:36:30 EDT 2007


(subject modified since I find it hard to relate this content to QGIS)


Glynn Clements wrote:
> 
> 
> 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>
> 

I have seen the changes in CVS. Is the module now (way) faster?
That would be great.

Markus
-- 
View this message in context: http://www.nabble.com/QGIS-winGRASS-blank-space-problem-tf3865213.html#a11273304
Sent from the Grass - Dev mailing list archive at Nabble.com.




More information about the grass-dev mailing list