[GRASS5] Re: Vector symbols & g.region

Hamish hamish_nospam at yahoo.com
Sun Dec 12 18:14:00 EST 2004


> > >>>>>What is the status of the vector symbols in 5.7?
..
> > i updated d.m/vector.tcl that it can handle multiple categories. the 
> > problem is, that the categories are hard-coded (the icons aren't 
> > anymore, they are selected with a GSelect window) and i haven't figured 
> > out how to have them updated without having to change the source code.
> 
> Is there a possibility to access the dynamic list through TCL?
> Might be the best solution.
..
> > although d.vect works again, there is one issue left. with the current 
> > selector, the icons are limited to those in the basic directory. as the 
> > items on the list created by the new function are something like 
> > "basic/icon", d.vect doesn't accept for example "demo/icon" anymore as 
> > the "demo" directory doesn't appear anywhere on the possible list.
> > thus, this version of d.vect doesn't properly work with my changes to 
> > vector.tcl or a cli call of d.vect as they both allow the use of other 
> > symbol directories than "basic".
> > for now, that doesn't really matter as there is are no other symbols as 
> > those in basic (at least officially, who know what guys have on there 
> > hard drives) but once there are more symbol collections this issue has 
> > to be addressed.
> 
> Yes, a known problem but I don't know how to program that.
> d.vect should loop over the subdirs in /etc/symbol/ and build
> a complete list... C programmer welcome. 
> If it turns out to be impossible (due to time constraints of
> other developers), I'll revert it to the manual selection next
> week as it was before.



can TCL or C parse a system call to something like:
 cd $GISBASE/etc/symbol ; find * | grep /



Hamish




More information about the grass-dev mailing list