Hello, attached is a small patch that fixes a small bug in d.vect.thematic: Other layers than 1 could not be used as sources for attribute data. The reason is quite obvious: in determining the column type through v.info, the layer was set to 1 instead of $GIS_OPT_LAYER.
Best Wishes, Harri K.
Index: d.vect.thematic =================================================================== RCS file: /home/grass/grassrepository/grass6/scripts/d.vect.thematic/d.vect.thematic,v retrieving revision 1.56 diff -u -r1.56 d.vect.thematic --- d.vect.thematic 12 Nov 2007 17:52:13 -0000 1.56 +++ d.vect.thematic 23 Nov 2007 15:19:02 -0000 @@ -240,7 +240,7 @@ MAX_LEG_ITEMS=18 # check column type -COLTYPE="`v.info -c $GIS_OPT_MAP layer=1 2> /dev/null | grep -w $GIS_OPT_COLUMN | cut -d'|' -f1 | tr -s '[:upper:]' '[:lower:]'`" +COLTYPE="`v.info -c $GIS_OPT_MAP layer=$GIS_OPT_LAYER 2> /dev/null | grep -w $GIS_OPT_COLUMN | cut -d'|' -f1 | tr -s '[:upper:]' '[:lower:]'`" #COLTYPE=... if [ -z "$COLTYPE" ] ; then
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
