[GRASS-user] v.to.rast error?

Hi all.
With http://int.faunalia.it/~paolo/v.to.rast.tar.gz
the command
v.to.rast input=test@v.to.rast column=codice_cor output=test use=attr
gives an error:
...
Area without centroid (may be OK for island)
G_calloc: unable to allocate 18446744072399020032 * 8 bytes at raster.c:71
A local problem, or a general issue?
Thanks for any hint.
--
Paolo Cavallini: http://www.faunalia.it/pc

Paolo wrote:

v.to.rast input=test@v.to.rast column=codice_cor output=test use=attr
gives an error:
...
Area without centroid (may be OK for island)
G_calloc: unable to allocate 18446744072399020032 * 8 bytes at raster.c:71

it is saying that it can not allocate enough memory for the task ....

A local problem, or a general issue?

looking at the WIND file,
cols: 1777198
rows: 4927865

that is a very large raster you are trying to create...

try:
  g.region res=10 -ap

which should fix it. then a more reasonable:
rows: 2460
cols: 3330

alternatively you could set v.to.rast rows= to a lower number, which
would reduce the memory needs. but then you run out of disk space
(unless you do have 8TB).

also, looking at the data it might be better to make 2 raster maps, one
for the NW block and one for the SE block. Completely empty data rows
are quite efficient to deal with but big chunks of empty columns are not.

Hamish

Hamish ha scritto:

that is a very large raster you are trying to create...

Oh, /me stupid - thanks Hamish!
--
Paolo Cavallini: http://www.faunalia.it/pc