Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Report checking and availablility of pointcloud (via debug)
  • Loading branch information
Sandro Santilli committed May 12, 2015
1 parent 4562b04 commit 12739c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -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 )
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 12739c2

Please sign in to comment.