[GRASS-dev] question about error in r.watershed
Markus Metz
markus.metz.giswork at googlemail.com
Sun Dec 21 05:46:16 EST 2008
Michael Barton wrote:
> This worked. Thanks.
Thanks Glynn, I couldn't figure out where this error came from. Patches
for this bug: no error if length.slope is requested without giving basin
threshold are attached to ticket 398 [1], separately for grass64 and
grass70.
Markus M
[1] http://trac.osgeo.org/grass/ticket/398
>
> Michael
> ____________________
> C. Michael Barton, Professor of Anthropology
> Director of Graduate Studies
> School of Human Evolution & Social Change
> Center for Social Dynamics & Complexity
> Arizona State University
>
> Phone: 480-965-6262
> Fax: 480-965-7671
> www: <www.public.asu.edu/~cmbarton>
>
>
>
> On Dec 20, 2008, at 9:06 PM, Glynn Clements wrote:
>
>>
>> Michael Barton wrote:
>>
>>>> The fix would be to add the following lines in front/main.c at line
>>>> 223
>>>>
>>>> /* LS factor and basin.thresh */
>>>> err += (opt14->answer != NULL && opt6->answer == NULL);
>>
>>> I applied your patch and got the following compiler error:
>>>
>>> r.watershed/front >> /Users/cmbarton/grass_dev/grass6_src/error.log
>>> gcc -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.6.0/
>>> include -arch i386 -Os -DPACKAGE=\""grassmods"\" -I/Users/
>>> cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.6.0/include -o
>>> OBJ.i386-apple-darwin9.6.0/main.o -c main.c
>>> main.c: In function �main�:
>>> main.c:224: error: stray �\202� in program
>>> main.c:224: error: stray �\202� in program
>>
>> Presumably, that's in the line you added.
>>
>> I suspect an error in the copy/paste from the email. I've attached
>> Markus' suggested change as a binary attachment.
>>
>> --
>> Glynn Clements <glynn at gclements.plus.com>
>>
>> <r.watershed.patch>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
More information about the grass-dev
mailing list