mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
Fix ifdef for copc algorithm
This commit is contained in:
parent
fb03531d25
commit
8fa1f26ebc
@ -22,7 +22,7 @@
|
||||
#include <QFileInfo>
|
||||
#include <QDir>
|
||||
|
||||
#ifdef WITH_PDAL
|
||||
#ifdef HAVE_PDAL_QGIS
|
||||
#include "QgisUntwine.hpp"
|
||||
#endif
|
||||
#include "qgsapplication.h"
|
||||
@ -78,7 +78,7 @@ bool QgsPdalCreateCopcAlgorithm::prepareAlgorithm( const QVariantMap ¶meters
|
||||
Q_UNUSED( context )
|
||||
Q_UNUSED( feedback )
|
||||
|
||||
#ifdef WITH_PDAL
|
||||
#ifdef HAVE_PDAL_QGIS
|
||||
return true;
|
||||
#else
|
||||
throw QgsProcessingException( QObject::tr( "This algorithm requires a QGIS installation with PDAL support enabled." ) );
|
||||
@ -87,7 +87,7 @@ bool QgsPdalCreateCopcAlgorithm::prepareAlgorithm( const QVariantMap ¶meters
|
||||
|
||||
QVariantMap QgsPdalCreateCopcAlgorithm::processAlgorithm( const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback )
|
||||
{
|
||||
#ifdef WITH_PDAL
|
||||
#ifdef HAVE_PDAL_QGIS
|
||||
const QList<QgsMapLayer *> layers = parameterAsLayerList( parameters, QStringLiteral( "LAYERS" ), context, QgsProcessing::LayerOptionsFlag::SkipIndexGeneration );
|
||||
if ( layers.empty() )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user