Skip to content
Permalink
Browse files
temporal fix for 1900
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12687 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Jan 7, 2010
1 parent 38e183f commit 81b1c0931aa68771e07fe6014c80d957b9787cf5
Showing with 13 additions and 3 deletions.
  1. +13 −3 src/providers/grass/qgsgrass.cpp
@@ -90,6 +90,10 @@ void GRASS_EXPORT QgsGrass::init( void )
// Init GRASS libraries (required)
G_no_gisinit(); // Doesn't check write permissions for mapset compare to G_gisinit("libgrass++");

// I think that mask should not be used in QGIS as it can only confuse people,
// anyway, I don't think anybody is using MASK
G_suppress_masking();

// Set program name
G_set_program_name( "QGIS" );

@@ -594,9 +598,15 @@ QString QgsGrass::closeMapset( )

// Reinitialize GRASS
G__setenv(( char * ) "GISRC", ( char * ) "" );
G__setenv(( char * ) "GISDBASE", ( char * ) "" );
G__setenv(( char * ) "LOCATION_NAME", ( char * ) "" );
G__setenv(( char * ) "MAPSET", ( char * ) "" );

// Temporarily commented because of
// http://trac.osgeo.org/qgis/ticket/1900
// http://trac.osgeo.org/gdal/ticket/3313
// it can be uncommented once GDAL with patch gets depoyed (probably GDAL 1.8)
//G__setenv(( char * ) "GISDBASE", ( char * ) "" );
//G__setenv(( char * ) "LOCATION_NAME", ( char * ) "" );
//G__setenv(( char * ) "MAPSET", ( char * ) "" );

defaultGisdbase = "";
defaultLocation = "";
defaultMapset = "";

0 comments on commit 81b1c09

Please sign in to comment.