Skip to content

Commit

Permalink
fix #1052
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8389 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 30, 2008
1 parent 9abae73 commit 518a97b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 518a97b

Please sign in to comment.