[GRASSLIST:6669] Re: Overriding awk locales

Jose Gomez-Dans jgomezdans at gmail.com
Thu Apr 28 12:31:55 EDT 2005


On 4/28/05, Pedro Camilo Alcántara Concepción
<camilo at pcbiol.posgrado.unam.mx> wrote:
> > some points. These points are in a file, and I have used awk '{printf
> > "%16.6f|%16.6f|%16.6f\n", $1,$2,$3}' to generate my files. However,
> just try:
> 
> awk '{printf"%16.6f|%16.6f|%16.6f\n", $1,$2,$3}' | sed 's/\,/\./g'

As I mentioned on my previous e-mail, that is exactly what I did.
Which works. BUT, on my machine, v.in.ascii scans the whole file first
(8.3M records!) and then starts importing it. The memory v.in.ascii
uses starts to mount up, until around 3.7M records have been read in.
At around this point, the kernel kills v.in.ascii due to excessive
memory usage (I use Linux).

The v.in.ascii line is:
v.in.ascii -zt output=<lala> fs="|" x=1 y=2 z=3 cols="x double
precision, y double precision, z double precision"

I know that if you use a dbf table, the memory usage grows (see
<http://www.intevation.de/rt/webrt?serial_num=2903&display=History>).
I use 6.0.0-1 (DebianGIS packages). Anyone got any ideas on what to do
or how I can provide extra debugging information for people to have a
look at?
Thanks!
José




More information about the grass-user mailing list