Skip to content
Permalink
Browse files

Report checking and availablility of pointcloud (via debug)

  • Loading branch information
Sandro Santilli
Sandro Santilli committed May 12, 2015
1 parent 4562b04 commit 12739c2f142f5bbdb1e255e951b1fcb0d9a18b32
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/providers/postgres/qgspostgresconn.cpp
@@ -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;
}

0 comments on commit 12739c2

Please sign in to comment.
You can’t perform that action at this time.