Hello,
I tried to do v.to.rast with a vector file but receive this error message:
v.to.rast input=in output=out column=A_VAL1 type=area
...
WARNING: Area without centroid (may be OK for island)
WARNING: Area without centroid (may be OK for island)
WARNING: Area without centroid (may be OK for island)
ERROR: G_calloc: unable to allocate 525123584 * 8 bytes at raster.c:71
to check if there is a problem in the vector file I did it with
v.to.rast input=in output=out use=val
and it works fine.
Looking at the vector file, the possible problem might be that the column
A_VAL1 is DOUBLE PRECISION but has only values from 1-20.
Now I want to change the type from DOUBLE PRECISION to INTEGER but so far
haven't suceeded to find the right command.
Any hints how to solve this problem, e.g. which command might be appropriate
to change the column type?
kind regards, Martin
Martin Wegmann wrote:
Hello,
I tried to do v.to.rast with a vector file but receive this error message:
v.to.rast input=in output=out column=A_VAL1 type=area ...
WARNING: Area without centroid (may be OK for island)
ERROR: G_calloc: unable to allocate 525123584 * 8 bytes at raster.c:71
This is a request for about 3.9 GB of memory. Maybe you ran out of memory? The default number of rows to hold in memory is 4096, you could try a smaller value e.g. v.to.rast rows=2048.
Maybe the region settings, extend and resolution, are a bit high and could be adjusted?
Markus M
Hello,
Am Tuesday 21 April 2009 17:10:04 schrieb Markus Metz:
Martin Wegmann wrote:
> Hello,
>
> I tried to do v.to.rast with a vector file but receive this error
> message:
>
> v.to.rast input=in output=out column=A_VAL1 type=area
> ...
> WARNING: Area without centroid (may be OK for island)
> WARNING: Area without centroid (may be OK for island)
> WARNING: Area without centroid (may be OK for island)
> ERROR: G_calloc: unable to allocate 525123584 * 8 bytes at raster.c:71
This is a request for about 3.9 GB of memory. Maybe you ran out of
memory?
yes that is probable, I have only 4GB of memory
The default number of rows to hold in memory is 4096, you could
try a smaller value e.g. v.to.rast rows=2048.
using rows=2048 worked fine
Maybe the region settings, extend and resolution, are a bit high and
could be adjusted?
unfortunately not, however I managed to get it also done by changing the
column type from DOUBLE PRECISION to INTEGER (outside GRASS ... ).
Martin