[GRASS5] Vector files: zero and null values (also: r.poly update)

Andrea Aime aaime at comune.modena.it
Mon Mar 12 10:15:45 EST 2001


Hi everybody,
I've just bug fixed area label problem with r.poly (it was creating more
label than required it there were islands), and I get
stuck with another problem... a problem that needs some discussion.
I've noticed that r.poly does not outputs area label for 0 value
area, that's wrong in my opinion since 0 is a good value now. I've
tracked down to problem to a function declared in dig_atts.h, write_att.
If you look in write_att.c you'll see that label with zero category
number are not accepted (write_att_line does the same). In my opinion 
that should be changed to not accept NULL values, but this would be
a library change and I don't know if that would break something else.
Also,
I don't know how to manage it from the linker point of view (linking
GIS_LIB to DIG_ATTLIB just to have the contents of null.c, well, it
seems 
to me a big overhead, but in fact I don't know much about UNIX 
static and dinamic libraries).
I also taken a look at other modules (v.in.shape) and noticed that
they don't use write_att, instead the write directly dig_att file by
means
of a fprintf...
Well, what should we do? I will update r.poly as soon as a 
decision is taken, so that both changes will occur in a single update.
Bye
Andrea

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list