Hello Brad:

From your description I gather that you have QGIS installed with the OSGeo4W installer. And on the same machine you also have a separate GRASS installation. And you're saying that you can start GRASS on its own with the GISDBASE, LOCATION and MAPSET all setup. Is that correct?? But when you try to run GRASS modules from within QGIS you're getting an error that the GISDBASE is not set?

Now, when you start QIS, is the GRASS plugin loading? If so, can you click the "New Mapset" button and then, where it says "Database:" click "Browse" and choose the directory of your GRASS database to be identical to the above directory you setup from GRASS. Then select the LOCATION and MAPSET as above.

If the GRASS database has not been set at all, then use the same procedure from within QGIS to choose a directory, then continue with the QGIS wizard, set up a LOCATION and MAPSET. Note that you must be the *owner* of the directory for the GRASS database.


HTH,

Micha

  


On 01/28/2011 09:30 PM, Brad Nesom wrote:

I have had this problem for all time on xp, osgeo4w. updating and new dev, nothing has fixed it. Now I find a page that says this env is not supposed to be used anymore.
1. Is this just my problem?
2. Does anyone know how to fix it?
 
G_getenv(): Variable GISDBASE not set
 
Grassbook chapter 11 says: "Programming:
 
  • Since the variable $LOCATION no longer exists, every GRASS shell script must have at beginning:

     
     

    eval `g.gisenv`
    : ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
    LOCATION=$GISDBASE/$LOCATION_NAME/$MAPSET

    to work properly. 
     

  • Gmakefiles contain a DEP line now (needed to support optional GRASS shared libraries)
     
  • GISDBASE isn't meant to be an "environment variable", it's a setting in $GISRC. Although most of the GRASS documentation is totally confused on this issue, as was some of the code as well (mostly, code written in Bourne shell, Tcl or PERL; code written in C used G_getenv(), which got it right).
If I can start grass from any of the interfaces. And I can see my configuration is set in each of those interfaces. Why does grass plugin (qgis) not detect that same getenv?

This mail was received via Mail-SeCure System.
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user

This mail was received via Mail-SeCure System.




-- 
Micha Silver
Arava Development Co. +972-52-3665918
http://www.surfaces.co.il
 
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to