Skip to content

Commit

Permalink
enable build virtual point cloud algorithm
Browse files Browse the repository at this point in the history
Virtual point cloud (VPC) is similar to GDAL's VRT - it is a single file
referring to other files that contain actual data.
  • Loading branch information
alexbruy authored and wonder-sk committed Mar 30, 2023
1 parent 3104c10 commit 1917362
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/analysis/CMakeLists.txt
Expand Up @@ -424,7 +424,7 @@ if (WITH_PDAL AND PDAL_2_5_OR_HIGHER)
processing/pdal/qgspdalalgorithmbase.cpp

processing/pdal/qgsalgorithmpdalboundary.cpp
#processing/pdal/qgsalgorithmpdalbuildvpc.cpp
processing/pdal/qgsalgorithmpdalbuildvpc.cpp
processing/pdal/qgsalgorithmpdalclip.cpp
processing/pdal/qgsalgorithmpdalconvertformat.cpp
processing/pdal/qgsalgorithmpdaldensity.cpp
Expand Down
4 changes: 2 additions & 2 deletions src/analysis/processing/pdal/qgspdalalgorithms.cpp
Expand Up @@ -20,7 +20,7 @@
#include "qgsapplication.h"

#include "qgsalgorithmpdalboundary.h"
//#include "qgsalgorithmpdalbuildvpc.h"
#include "qgsalgorithmpdalbuildvpc.h"
#include "qgsalgorithmpdalclip.h"
#include "qgsalgorithmpdalconvertformat.h"
#include "qgsalgorithmpdaldensity.h"
Expand Down Expand Up @@ -91,7 +91,7 @@ void QgsPdalAlgorithms::loadAlgorithms()
const QgsScopedRuntimeProfile profile( QObject::tr( "QGIS PDAL provider" ) );

addAlgorithm( new QgsPdalBoundaryAlgorithm() );
//addAlgorithm( new QgsPdalBuildVpcAlgorithm() );
addAlgorithm( new QgsPdalBuildVpcAlgorithm() );
addAlgorithm( new QgsPdalClipAlgorithm() );
addAlgorithm( new QgsPdalConvertFormatAlgorithm() );
addAlgorithm( new QgsPdalDensityAlgorithm() );
Expand Down
4 changes: 1 addition & 3 deletions tests/src/analysis/testqgsprocessingpdalalgs.cpp
Expand Up @@ -35,7 +35,7 @@ class TestQgsProcessingPdalAlgs: public QObject
void cleanup() {} // will be called after every testfunction.

void boundary();
//void buildVpc();
void buildVpc();
void clip();
void convertFormat();
void density();
Expand Down Expand Up @@ -716,7 +716,6 @@ void TestQgsProcessingPdalAlgs::merge()
);
}

/*
void TestQgsProcessingPdalAlgs::buildVpc()
{
QgsPdalAlgorithmBase *alg = const_cast<QgsPdalAlgorithmBase *>( static_cast< const QgsPdalAlgorithmBase * >( QgsApplication::processingRegistry()->algorithmById( QStringLiteral( "pdal:virtualpointcloud" ) ) ) );
Expand Down Expand Up @@ -760,7 +759,6 @@ void TestQgsProcessingPdalAlgs::buildVpc()
<< pointCloud2
);
}
*/

void TestQgsProcessingPdalAlgs::clip()
{
Expand Down

0 comments on commit 1917362

Please sign in to comment.