Skip to content
Permalink
Browse files

fix after Nyall review

  • Loading branch information
PeterPetrik authored and nyalldawson committed Oct 26, 2020
1 parent b7e8071 commit acccc6343dbf384cf4e25578fe6e3241287939b1
Showing with 9 additions and 1 deletion.
  1. +2 −0 doc/CMakeLists.txt
  2. +6 −0 src/app/qgisapp.cpp
  3. +1 −1 src/core/pointcloud/qgspointcloudprovidermetadata.h
@@ -73,6 +73,7 @@ IF(WITH_APIDOC)
${CMAKE_SOURCE_DIR}/src/core/numericformats
${CMAKE_SOURCE_DIR}/src/core/pal
${CMAKE_SOURCE_DIR}/src/core/processing
${CMAKE_SOURCE_DIR}/src/core/pointcloud
${CMAKE_SOURCE_DIR}/src/core/providers
${CMAKE_SOURCE_DIR}/src/core/providers/memory
${CMAKE_SOURCE_DIR}/src/core/raster
@@ -96,6 +97,7 @@ IF(WITH_APIDOC)
${CMAKE_SOURCE_DIR}/src/gui/locator
${CMAKE_SOURCE_DIR}/src/gui/numericformats
${CMAKE_SOURCE_DIR}/src/gui/ogr
${CMAKE_SOURCE_DIR}/src/gui/pointcloud
${CMAKE_SOURCE_DIR}/src/gui/processing
${CMAKE_SOURCE_DIR}/src/gui/processing/models
${CMAKE_SOURCE_DIR}/src/gui/raster
@@ -7619,6 +7619,12 @@ bool QgisApp::openLayer( const QString &fileName, bool allowInteractive )
ok = static_cast< bool >( addMeshLayerPrivate( fileName, fileInfo.completeBaseName(), QStringLiteral( "mdal" ), false ) );
}

// Try to load as point cloud layer after raster & vector & mesh
if ( !ok )
{
ok = static_cast< bool >( addPointCloudLayerPrivate( fileName, fileInfo.completeBaseName(), false ) );
}

if ( !ok )
{
// we have no idea what this file is...
@@ -26,7 +26,7 @@

/**
* This metadata class does not support creation of provider instances, because
* vector tile layer currently does not have a concept of data providers. This class
* point cloud layer currently does not have a concept of data providers. This class
* is only used to create data item provider (for browser integration).
*/
class QgsPointCloudProviderMetadata : public QgsProviderMetadata

0 comments on commit acccc63

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