@@ -100,6 +100,19 @@ QgsPostgresProvider::QgsPostgresProvider(QString const & uri)
100
100
return ;
101
101
}
102
102
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.\n Please install PostGIS with "
113
+ " GEOS support (http://geos.refractions.net)" ));
114
+ }
115
+
103
116
QgsDebugMsg (" Checking for permissions on the relation" );
104
117
105
118
// Check that we can read from the table (i.e., we have
@@ -312,19 +325,6 @@ PGconn *QgsPostgresProvider::connectDb(const QString & conninfo)
312
325
QgsDebugMsg (" undefined return value from encoding setting" );
313
326
}
314
327
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.\n Please install PostGIS with "
325
- " GEOS support (http://geos.refractions.net)" ));
326
- }
327
-
328
328
QgsDebugMsg (" Connection to the database was successful" );
329
329
330
330
Conn *conn = new Conn (pd);
0 commit comments