[GRASS-user] v.to.rast error?
Hamish
hamish_b at yahoo.com
Thu Aug 20 08:30:52 EDT 2009
Paolo wrote:
> v.to.rast input=test at 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
More information about the grass-user
mailing list