You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Check to see if we have working PostGIS support */
293
-
if ( postgisVersion().isNull() )
293
+
if ( !postgisVersion().isNull() )
294
294
{
295
-
QgsMessageLog::logMessage( tr( "Your database has no working PostGIS support." ), tr( "PostGIS" ) );
296
-
PQfinish();
297
-
mRef = 0;
298
-
return;
295
+
/* Check to see if we have GEOS support and if not, warn the user about
296
+
the problems they will see :) */
297
+
QgsDebugMsg( "Checking for GEOS support" );
298
+
299
+
if ( !hasGEOS() )
300
+
{
301
+
QgsMessageLog::logMessage( tr( "Your PostGIS installation has no GEOS support. Feature selection and identification will not work properly. Please install PostGIS with GEOS support (http://geos.refractions.net)" ), tr( "PostGIS" ) );
302
+
}
303
+
304
+
if ( hasTopology() )
305
+
{
306
+
QgsDebugMsg( "Topology support available!" );
307
+
}
299
308
}
300
309
301
310
if ( mPostgresqlVersion >= 90000 )
302
311
{
303
312
PQexecNR( "SET application_name='QGIS'" );
304
313
}
305
314
306
-
/* Check to see if we have GEOS support and if not, warn the user about
307
-
the problems they will see :) */
308
-
QgsDebugMsg( "Checking for GEOS support" );
309
-
310
-
if ( !hasGEOS() )
311
-
{
312
-
QgsMessageLog::logMessage( tr( "Your PostGIS installation has no GEOS support. Feature selection and identification will not work properly. Please install PostGIS with GEOS support (http://geos.refractions.net)" ), tr( "PostGIS" ) );
0 commit comments