Skip to content
Permalink
Browse files
fix #1052
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8389 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 30, 2008
1 parent 1a43561 commit d0c0676b39c0e69e47b3ef73538b402a7b10ee34
Showing with 13 additions and 13 deletions.
  1. +13 −13 src/providers/postgres/qgspostgresprovider.cpp
@@ -100,6 +100,19 @@ QgsPostgresProvider::QgsPostgresProvider(QString const & uri)
return;
}

/* Check to see if we have GEOS support and if not, warn the user about
the problems they will see :) */
QgsDebugMsg("Checking for GEOS support");

if(!hasGEOS(connection))
{
showMessageBox(tr("No GEOS Support!"),
tr("Your PostGIS installation has no GEOS support.\n"
"Feature selection and identification will not "
"work properly.\nPlease install PostGIS with "
"GEOS support (http://geos.refractions.net)"));
}

QgsDebugMsg("Checking for permissions on the relation");

// Check that we can read from the table (i.e., we have
@@ -312,19 +325,6 @@ PGconn *QgsPostgresProvider::connectDb(const QString & conninfo)
QgsDebugMsg("undefined return value from encoding setting");
}

/* Check to see if we have GEOS support and if not, warn the user about
the problems they will see :) */
QgsDebugMsg("Checking for GEOS support");

if(!hasGEOS(pd))
{
showMessageBox(tr("No GEOS Support!"),
tr("Your PostGIS installation has no GEOS support.\n"
"Feature selection and identification will not "
"work properly.\nPlease install PostGIS with "
"GEOS support (http://geos.refractions.net)"));
}

QgsDebugMsg("Connection to the database was successful");

Conn *conn = new Conn(pd);

0 comments on commit d0c0676

Please sign in to comment.