[GRASS-user] [Fwd: r.cost vs. costallocation (arcgis)]

Markus Metz markus.metz.giswork at gmail.com
Tue Apr 2 10:01:21 PDT 2013


On Tue, Apr 2, 2013 at 5:35 PM, Markus Neteler <neteler at osgeo.org> wrote:
> On Mon, Apr 19, 2010 at 7:27 PM, Markus Metz:
>>
>> António M. Rodrigues:
>>
>>>
>>> I've been reading about scripting and programming in GRASS, since I
>>> believe the solution probably
>>> involves writing some code based on r.cost.
>>>
>>> But of course, any help is welcomed.
>
> A similar (same?) question came up how to perform
> http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Cost_Allocation
>
>> Try GRASS 7 r41926, r.cost got a new raster output option with the nearest
>> start point. Is this what you had in mind?
>
> Trying this:
> r.cost input=cost_ras start_rast=source_ras output=costsurf nearest=cost_alloc
>
> I got a different result.

I got the same result. Did you set 0 to NULL in the .asc files?

Markus M

> Input files from the example attached,
> they were generated in the NC location.
>
> Wrong usage at my end?
>
> Markus


More information about the grass-user mailing list