Hi,
On grass-5.7.cvs-i686-pc-linux-gnu-28_08_2004 on debian
I tried to use r.contour on a kernel raster but I have this result:
GRASS 5.7.cvs:~ > r.contour input=fagiano_kernel step=0.00001 cut=0
output=fagiano_kernel
WARNING: The vector 'fagiano_kernel' already exists and will be
overwritten.
Reading data.
Percent complete: 100%
FPRange of data: min = 0.000000 max = 0.003658
Minimum level will be 0.000000
Maximum level will be 0.003650
Continue?(y/n) [y] y
Displacing data.
Percent complete: 100%
Total levels: 367 Current level:(it counts levels and then...)
Segmentation fault
If I want display it I see the vector but it say to me:
WARNING: coor files of vector 'fagiano_kernel@2004_miglioramenti_zrv' is
larger than it should be (232324 bytes excess).
WARNING: Cannot display areas, topology not available
I remember thath in the past I used r.contour without problem, but I am not
sure.
On grass-5.7.cvs-i686-pc-linux-gnu-28_08_2004 on debian
I tried to use r.contour on a kernel raster but I have this result:
GRASS 5.7.cvs:~ > r.contour input=fagiano_kernel step=0.00001 cut=0
output=fagiano_kernel
WARNING: The vector 'fagiano_kernel' already exists and will be
overwritten.
Reading data.
Percent complete: 100%
FPRange of data: min = 0.000000 max = 0.003658
Minimum level will be 0.000000
Maximum level will be 0.003650
Continue?(y/n) [y] y
Displacing data.
Percent complete: 100%
Total levels: 367 Current level:(it counts levels and then...)
Segmentation fault
This works fine for me, can you make it fail with something from the
spearfish dataset?
If I want display it I see the vector but it say to me:
WARNING: coor files of vector 'fagiano_kernel@2004_miglioramenti_zrv'
is
larger than it should be (232324 bytes excess).
WARNING: Cannot display areas, topology not available
.. you can try v.build, but basically the vector file is broken.
I just made a minor change to 5.7's r.contour which might help in the
debugging.
> On grass-5.7.cvs-i686-pc-linux-gnu-28_08_2004 on debian
> I tried to use r.contour on a kernel raster but I have this result:
>
> GRASS 5.7.cvs:~ > r.contour input=fagiano_kernel step=0.00001 cut=0
> output=fagiano_kernel
> WARNING: The vector 'fagiano_kernel' already exists and will be
> overwritten.
> Reading data.
> Percent complete: 100%
> FPRange of data: min = 0.000000 max = 0.003658
> Minimum level will be 0.000000
> Maximum level will be 0.003650
> Continue?(y/n) [y] y
> Displacing data.
> Percent complete: 100%
> Total levels: 367 Current level:(it counts levels and then...)
> Segmentation fault
This works fine for me, can you make it fail with something from the
spearfish dataset?
FWIW I've also had problems with r.contour segfaulting when producing large
numbers of contours on reasonably large datasets.
I don't remember the details, and it wasn't worth tracking it down, but I
think the work around was just to ask for less contours, then it would work.
My untested suspicion is that perhaps there is a list of nodes maintained in a
short array and it segfaults when you get more than 32K nodes.