[GRASS-dev] modules have problems with @mapset

Hamish hamish_b at yahoo.com
Wed Feb 13 19:35:40 EST 2008


> >> It's complaining that the map you are using isn't in the current
> >> mapset when it actually is in the mapset.
...
> >> ERROR: sites at spatialtech2008_18153.0 is not in the current mapset
> >>        (spatialtech2008)


It is trying to append _{$TMP} after map at mapset instead of just 'map'.


Try this:
  http://trac.osgeo.org/grass/changeset/30118
(really please try that, I haven't tested it)


+++ /grass/trunk/scripts/v.db.addtable/v.db.addtable (revision 30118)
@@ -88,18 +88,20 @@
    g.message -e  "Vector map '$GIS_OPT_MAP' not found in current
mapset"
    exit 1
+else
+   MAP_NAME=`echo "$GIS_OPT_MAP" | cut -f1 -d'@'`
 fi


As for i.smap, the imagery library + modules are known to be very bad
at dealing with @mapset, my suggestion for users of imagery modules is
to not use @mapset at all. (yes I know the GUI insists on adding that,
sorry..)


Hamish



      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping



More information about the grass-dev mailing list