mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Report checking and availablility of pointcloud (via debug)
This commit is contained in:
parent
4562b049b0
commit
12739c2f14
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user