Report checking and availablility of pointcloud (via debug)

This commit is contained in:
Sandro Santilli 2015-05-12 10:59:09 +02:00
parent 4562b049b0
commit 12739c2f14

View File

@ -184,6 +184,7 @@ QgsPostgresConn::QgsPostgresConn( QString conninfo, bool readOnly, bool shared,
, mPostgisVersionMinor( 0 )
, mGistAvailable( false )
, mProjAvailable( false )
, mPointcloudAvailable( false )
, mUseWkbHex( false )
, mReadOnly( readOnly )
, mSwapEndian( false )
@ -866,8 +867,13 @@ QString QgsPostgresConn::postgisVersion()
mGotPostgisVersion = true;
QgsDebugMsg( "Checking for pointcloud support" );
result = PQexec( "SELECT oid FROM pg_catalog.pg_extension WHERE extname = 'pointcloud_postgis'", false );
mPointcloudAvailable = result.PQntuples() == 1;
if ( result.PQntuples() == 1 )
{
mPointcloudAvailable = true;
QgsDebugMsg( "Pointcloud support available!" );
}
return mPostgisVersionInfo;
}