[GRASS-user] Re: [Qgis-user] error with r.cost

Markus Metz markus.metz.giswork at googlemail.com
Mon Apr 11 02:32:00 EDT 2011


On Sun, Apr 10, 2011 at 10:02 PM, Markus Neteler <neteler at osgeo.org> wrote:
> Ambrish Dhaka,
>
> you need to check the region extent + resolution, probably
> you are exceeding the available RAM if you are having too
> many rows and columns.
>
In this case you could adjust the percent_memory option of r.cost and
set it to 50 (by default all intermediate data are kept in memory).

Markus M

> Get the information with:
> g.region -p
>
> or the respective menu entry.
>
> Markus
>
> On Sun, Apr 10, 2011 at 10:57 AM, ambijat <ambijat at hotmail.com> wrote:
>> Ramon says,
>> I'm afraid I don't - but given the current situations, I'd suggest anyone
>> that could help would also be wondering which version of QGIS you were using
>> and on which operating system.
>>
>> The Qgis version is 1.6.0 also, the result is same on GRASS (tcl/tk) 6.4
>> RC1, performed on WinXP SP3 on a core2Duo machine.
>>
>> regards,
>> Ambrish Dhaka
>
>
> On 10/04/2011, at 13:19 , ambijat wrote:
>> Hi All,
>> I am trying to create shortest path between two raster points (converted from v.to.rast) and I use the STRM data for the input values between the two points. This is the error I get.
>>
>> r.cost input=afg_rast at user1 output=salroute start_rast=salang at user1 max_cost=0 -k
>> G_malloc: unable to allocate 524288 bytes at setup.c:64
>> Finished with error
>>
>> Any idea why I am getting this?
>> Thanks and regards,
>> Ambrish Dhaka
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list