[GRASS-user] vector to raster: ERROR: G_calloc: unable

Martin Wegmann martin.wegmann at uni-wuerzburg.de
Tue Apr 21 12:09:48 EDT 2009


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





More information about the grass-user mailing list