[GRASS-dev] modules have problems with @mapset

Glynn Clements glynn at gclements.plus.com
Thu Feb 14 16:53:50 EST 2008


Hamish wrote:

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

Completely bogus. Reverted.

This just papers over the symptoms without fixing anything.

If the name includes a mapset which isn't the current one, that's an
error. You don't just discard the mapset.

If you don't have a clue what's going on, don't just commit random
changes which make the problem appear to go away on your system.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list