[GRASS-stats] Loading a point-vector table with 466 columns

Hamish hamish_b at yahoo.com
Wed May 27 05:23:12 EDT 2009


Roger wrote:
> Next script in R generating increasing NR and NC cases through 
> writeVECT6() to test plugin=FALSE/plugin=TRUE ratios?


Does R have any built in profiling tools? as grass is just a collection
of small C programs the normal ones work fine with it:

  http://grass.osgeo.org/wiki/Bugs#Using_a_profiling_tool

or use a profiling tool at the command line while running ogr2ogr with
input=grass and output=shapefile?


Nikos wrt your 10hr script:
v.db.update must open and close the DB for every time you call it. That
is very slow and inefficient. Better is to write all SQL update commands
to a file (end each line with a ';') then use that file as input to
db.execute so it opens the DB, updates all fields, closes DB again in
a single step. see the db.execute man page and v.in.garmin script for an
example (where it made a huge improvement).



Hamish



      



More information about the grass-stats mailing list