[GRASS5] Re: s.kcv in 5.4, v.kcv in 5.7?

Jaro Hofierka hofierka at geomodel.sk
Fri Oct 15 16:18:59 EDT 2004


Helena,

It doesn't work for x|y|%z format - I got a segmentation fault. Maybe it 
works for other site types.

Jaro

> BUGS:
> 
> * not fully updated to 5.0 sites API
>   -> fixed MN 2/2001
> 
> * the modules crashes in
>    if (!z[m].partition)
>   as this is not set properly 




Helena Mitasova wrote:
> I noticed that s.kcv is commented out with a note that it needs update
> to 5.0 API -
> is that true? Markus says that it compiles (and runs?) OK for him.
> I have troubles compiling it because of bad path, but otherwise it may
> be
> up-to-date and worth including - can somebody else try it?. 
> It creates a random subset of point data -
> this is particularly useful for crossvalidation, as well as for data
> sets
> that are oversampled (e.g. lidar).
> Radim, would it be possible to port it to 5.7 as v.kcv? (I noticed that
> some
> of the other useful site programs such as v.random are already there.
> 
> thank you for any feedback on this,
> 
> helena 
> 
>  
>          [GRASS-CVS] paul: grass/src/CMD/lists GRASS,1.132,1.133
> ....
>  #src/sites/s.kcv  # needs update to 5.0 API
> ....
> 
>  
> Markus Neteler wrote:
> 
>>
>>>I tried to compile it myself but I am getting a similar error as with the
>>>g3. command in 5.7 - it tries to write into /etc/bin which does not exist (see below)
>>
>>That's odd. I get:
>>
>>make[1]: Leaving directory `/hardmnt/thuille1/ssi/cvsgrass_exp/src/sites/s.kcv'
>>
>>So it writes (as it should) to /nfsmnt/thuille1/ssi/cvsgrass_exp/grass-build/dist.i686-pc-linux-gnu/etc/bin/cmd/s.kcv
>>
>>I feel that the part /path/to/dist.i686-pc-linux-gnu/ is missing in your case.
> 
> 
>>>gcc
>>>-L/home/helena/grasscvs53/grass50_exp_2003_10_04/src/libes/LIB.i686-pc-linux-gnu  -o /etc/bin/cmd/s.kcv OBJ.i686-pc-linux-gnu/main.o OBJ.i686-pc-linux-gnu/dreset.o OBJ.i686-pc-linux-gnu/histo.o OBJ.i686-pc-linux-gnu/utils.o -lgis   -ldatetime -lm  -lz
>>>/usr/bin/ld: cannot open output file /etc/bin/cmd/s.kcv: No such file or
>>>directory
>>>collect2: ld returned 1 exit status
>>>make: *** [/etc/bin/cmd/s.kcv] Error 1
>>
>>Somehow the path prefix got lost.
>>
>>Markus
> 
> 
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
> 


-=x=-
Skontrolované antivírovým programom NOD32




More information about the grass-dev mailing list