Skip to content

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,19 @@ QgsPostgresProvider::QgsPostgresProvider(QString const & uri)
100100
return;
101101
}
102102

103+
/* Check to see if we have GEOS support and if not, warn the user about
104+
the problems they will see :) */
105+
QgsDebugMsg("Checking for GEOS support");
106+
107+
if(!hasGEOS(connection))
108+
{
109+
showMessageBox(tr("No GEOS Support!"),
110+
tr("Your PostGIS installation has no GEOS support.\n"
111+
"Feature selection and identification will not "
112+
"work properly.\nPlease install PostGIS with "
113+
"GEOS support (http://geos.refractions.net)"));
114+
}
115+
103116
QgsDebugMsg("Checking for permissions on the relation");
104117

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

315-
/* Check to see if we have GEOS support and if not, warn the user about
316-
the problems they will see :) */
317-
QgsDebugMsg("Checking for GEOS support");
318-
319-
if(!hasGEOS(pd))
320-
{
321-
showMessageBox(tr("No GEOS Support!"),
322-
tr("Your PostGIS installation has no GEOS support.\n"
323-
"Feature selection and identification will not "
324-
"work properly.\nPlease install PostGIS with "
325-
"GEOS support (http://geos.refractions.net)"));
326-
}
327-
328328
QgsDebugMsg("Connection to the database was successful");
329329

330330
Conn *conn = new Conn(pd);

0 commit comments

Comments
 (0)
Please sign in to comment.