Skip to content
Permalink
Browse files
remove unnecessary changes
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Apr 8, 2021
1 parent f9b7184 commit a547f176c69818fa6b7f8ea41639503415170ae4
@@ -5654,11 +5654,7 @@ QgsVectorTileLayer *QgisApp::addVectorTileLayerPrivate( const QString &url, cons
return layer.release();
}

QgsPointCloudLayer *QgisApp::addPointCloudLayerPrivate(
const QString &uri,
const QString &baseName,
const QString &providerKey,
bool guiWarning )
QgsPointCloudLayer *QgisApp::addPointCloudLayerPrivate( const QString &uri, const QString &baseName, const QString &providerKey, bool guiWarning )
{
QgsCanvasRefreshBlocker refreshBlocker;
QgsSettings settings;
@@ -7458,10 +7454,8 @@ bool QgisApp::openLayer( const QString &fileName, bool allowInteractive )
break;

case QgsMapLayerType::PointCloudLayer:
{
ok = static_cast< bool >( addPointCloudLayerPrivate( fileName, fileInfo.completeBaseName(), candidateProviders.at( 0 ).metadata()->key(), false ) );
}
break;
break;
}
}

@@ -35,11 +35,10 @@
QgsEptProvider::QgsEptProvider(
const QString &uri,
const QgsDataProvider::ProviderOptions &options,
const QString &dataSourceType,
QgsDataProvider::ReadFlags flags )
: QgsPointCloudDataProvider( uri, options, flags )
{
if ( dataSourceType == QStringLiteral( "remote" ) )
if ( uri.startsWith( QStringLiteral( "http" ), Qt::CaseSensitivity::CaseInsensitive ) )
mIndex.reset( new QgsRemoteEptPointCloudIndex );
else
mIndex.reset( new QgsEptPointCloudIndex );
@@ -133,7 +132,7 @@ QgsEptProviderMetadata::QgsEptProviderMetadata():

QgsEptProvider *QgsEptProviderMetadata::createProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options, QgsDataProvider::ReadFlags flags )
{
return new QgsEptProvider( uri, options, "", flags );
return new QgsEptProvider( uri, options, flags );
}

QList<QgsDataItemProvider *> QgsEptProviderMetadata::dataItemProviders() const
@@ -38,7 +38,6 @@ class QgsEptProvider: public QgsPointCloudDataProvider
public:
QgsEptProvider( const QString &uri,
const QgsDataProvider::ProviderOptions &providerOptions,
const QString &dataSourceType,
QgsDataProvider::ReadFlags flags = QgsDataProvider::ReadFlags() );

~QgsEptProvider();
@@ -43,7 +43,6 @@ class QgsTransaction;
class QgsRasterDataProvider;
class QgsMeshDataProvider;
class QgsAbstractDatabaseProviderConnection;
class QgsEptProvider;

struct QgsMesh;

@@ -39,7 +39,6 @@ class QgsCoordinateReferenceSystem;
class QgsDataItemProvider;
class QgsDataItem;
class QgsRasterDataProvider;
class QgsEptProvider;

/**
* \ingroup core

0 comments on commit a547f17

Please sign in to comment.