[GRASS-user] Custom d.vect icons in WX-Python GUI

2013-08-02 Thread Casey Vandenberg

Hi  GRASS-users,

I have a series of custom icons/symbols that I often use when I create 
maps or display layers inside of the wx-gui. Older versions of the 
d.vect UI would recognize my grass-6.4.x/etc/symbol/CustomDirName 
directory and the list of CustomIcons inside of it. With newer 
enhancements to the GUI which now displays the icon itself as opposed to 
directory/name only, I am no longer able to select any custom icons.  
Note: I can still use the command line to display vector layers using a 
custom icon (e.g. d.vect map=camp icon=custom/camp)


How can I build my version of GRASS to allow me to choose icons in a 
custom symbol directory using the d.vect UI.


I am convinced I have seen documentation on how to do that in the past, 
but a couple hours of searching around the wiki today has turned up empty.


Thanks,

Casey

p.s.  Here is my Grass Builds System Info if relevant

GRASS version: 6.4.4svn
GRASS SVN Revision: 57320M
GIS Library Revision: 50937 (2012-02-25)
GDAL/OGR: 1.10.0
PROJ4: Rel. 4.9.0, 22 June 2013
Python: 2.7.3
wxPython: 2.8.12.1
Platform: Linux-3.2.0-51-generic-x86_64-with-Ubuntu-12.04-precise

--
Casey Vandenberg Geomatics Specialist
SJ Geophysics Ltd.
11966 95A Avenue Delta, BC, Canada, V4C 3W2
Office: 604.582.1100
Mobile: 778.928.1103
www.sjgeophysics.com


--

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Custom d.vect icons in WX-Python GUI

2013-08-02 Thread Hamish
Casey wrote:
 I have a series of custom icons/symbols that I often use when I create
 maps or display layers inside of the wx-gui. Older versions of the
 d.vect UI would recognize my grass-6.4.x/etc/symbol/CustomDirName
 directory and the list of CustomIcons inside of it.

note you can also use $MAPSET/symbol/group/name, but it has to be done
for each mapset. (perhaps we should also search ~/.grassX/symbols/ or
$GRASS_ADDON_PATH/symbols/ ? [tricky if multiple paths in ADDON_PATH])

the idea is to have custom addon items installed for you install-wide,
and survive a version upgrade or 'make distclean' without being deleted.


 With newer enhancements to the GUI which now displays the icon itself
 as opposed to directory/name only, I am no longer able to select any
 custom icons. 
 Note: I can still use the command line to display vector layers using a
 custom icon (e.g. d.vect map=camp icon=custom/camp)

d.vect will get them if the module was built after they were installed.
d.graph might work directly with a newly installed symbol.
the d.mark addon script needs to be edited by hand, but just the (unique)
symbol name, not the group name.


 How can I build my version of GRASS to allow me to choose icons in a
 custom symbol directory using the d.vect UI.

to see them in the GUI you need to make a thumbnail image with ps.map 
andinkscape. See gui/images/symbols/README in the grass source code for a 
script to do that. Put the pngs in that same ./gui/images/symbols/ dir 
structure.


for sharing/backup/possibly get them installed by default consider to
contribute them to
  http://grasswiki.osgeo.org/wiki/IconSymbols#Contributions

or somewhere in addons svn.



regards,
Hamish

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user