Skip to content
Permalink
Browse files
fix WITH_EPT flag usage
  • Loading branch information
NEDJIMAbelgacem authored and nyalldawson committed Apr 27, 2021
1 parent cfd28ee commit 18f57b445610d06ba7e9f5d8f7e2d192f53a4cab
@@ -1719,6 +1719,8 @@ if (WITH_EPT)
pointcloud/qgseptpointcloudindex.h
pointcloud/qgsremoteeptpointcloudindex.h
)

add_definitions( -DWITH_EPT )
endif()

if (APPLE)
@@ -56,6 +56,7 @@ void QgsPointCloudBlockRequest::blockFinishedLoading()
try
{
mBlock = nullptr;
#ifdef WITH_EPT
if ( mDataType == QLatin1String( "binary" ) )
{
mBlock = QgsEptDecoder::decompressBinary( mTileDownloadManagetReply->data(), mAttributes, mRequestedAttributes );
@@ -73,6 +74,7 @@ void QgsPointCloudBlockRequest::blockFinishedLoading()
mErrorStr = QStringLiteral( "unknown data type %1;" ).arg( mDataType );
invalidDataType = true;
}
#endif
}
catch ( std::exception &e )
{
@@ -32,7 +32,6 @@
#include "qgsmaplayerlegend.h"
#include "qgsmaplayerfactory.h"
#include <QUrl>
#include "qgseptprovider.h"

QgsPointCloudLayer::QgsPointCloudLayer( const QString &uri,
const QString &baseName,

0 comments on commit 18f57b4

Please sign in to comment.