[GRASS5] r.to.sites: change proposal for -a

David D Gray ddgray at armadce.demon.co.uk
Mon Oct 30 10:32:26 EST 2000


David D Gray wrote:
> 
> >
> 
> Hi Markus, Eric, all
> 
> That's OK by me. The sites modules I have worked on only use CELL cats
> anyway. Very little recoding would be needed.
> 
> Just a thought for a future idea. Something that is a bit annoying in
> some contexts is that the numerical _attribute_ fields must always be
> represented as fp, as Eric has pointed out. Could a new int type be
> added to the struct so that it would be for example:
> 
> typedef struct
> {
>   double east, north;
>   double *dim;
>   int dim_alloc;
>   CELL cat;
>   int str_alloc;
>   char **str_att;
>   int dbl_alloc;
>   double *dbl_att;
>   int int_alloc;
>   int *int_att;    <<<<<<<<<<
> } Site;
> 
> Maybe if that was the case, the cat field could be confined (by
> convention though not by compulsion) to an index or key. I think this is
> the way we want to go with vector data also. This would allow existing
> modules to continue to use the cat, but modules could be changed at
> leisure to use an int attribute while still allowing a cat to be
> selected as a non-default option.
> 
> David
> 

The int attributes should be (int *) of course - please excuse the typo.

David

---------------------------------------- 
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