[GRASSLIST:6047] Re: moving layers from one machine to another
Radim Blazek
blazek at itc.it
Mon Mar 7 13:08:50 EST 2005
Chris Fonnesbeck wrote:
> On Mon, 07 Mar 2005 09:58:40 +0100, Radim Blazek <blazek at itc.it> wrote:
> D3/5: dig_Rd_P_line()
> D5/5: line type 4 -> 8
> D3/5: dig_Rd_P_line()
> D5/5: line type -1 -> 0
> Bus error
The type '-1' is wrong, it should be 1-8. The problem could be in
grass51/lib/vector/Vlib/read_nat.c Vect__Read_line_nat():
/* first byte: 0 bit: 1 - alive, 0 - dead
* 1 bit: 1 - categories, 0 - no category
* 2-3 bit: store type
* 4-5 bit: reserved for store type expansion
* 6-7 bit: not used
*/
....
char rhead, nc;
....
rhead >>= 2;
type = dig_type_from_store ( (int) rhead );
the line can be deleted:
rhead &= 0xFE;
but I don't know where is the problem. Maybe rhead should be unsigned?
Radim
More information about the grass-user
mailing list