Skip to content
Permalink
Browse files
make QGIS accept .LAZ and .LAS files as .laz & .las (#42706)
* make QGIS accept .LAZ and .LAS files as .laz & .las
  • Loading branch information
NEDJIMAbelgacem committed Apr 12, 2021
1 parent 8594567 commit bcd4ebc05509d04437314d78e544977477b1c603
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/providers/pdal/qgspdalprovider.cpp
  2. +2 −2 tests/src/providers/testqgspdalprovider.cpp
@@ -334,7 +334,7 @@ QString QgsPdalProviderMetadata::filters( QgsProviderMetadata::FilterType type )

case QgsProviderMetadata::FilterType::FilterPointCloud:
// TODO get the available/supported filters from PDAL library
return QObject::tr( "PDAL Point Clouds" ) + QStringLiteral( " (*.laz *.las)" );
return QObject::tr( "PDAL Point Clouds" ) + QStringLiteral( " (*.laz *.las *.LAZ *.LAS)" );
}
return QString();
}
@@ -91,11 +91,11 @@ void TestQgsPdalProvider::filters()
QgsProviderMetadata *metadata = QgsProviderRegistry::instance()->providerMetadata( QStringLiteral( "pdal" ) );
QVERIFY( metadata );

QCOMPARE( metadata->filters( QgsProviderMetadata::FilterType::FilterPointCloud ), QStringLiteral( "PDAL Point Clouds (*.laz *.las)" ) );
QCOMPARE( metadata->filters( QgsProviderMetadata::FilterType::FilterPointCloud ), QStringLiteral( "PDAL Point Clouds (*.laz *.las *.LAZ *.LAS)" ) );
QCOMPARE( metadata->filters( QgsProviderMetadata::FilterType::FilterVector ), QString() );

const QString registryPointCloudFilters = QgsProviderRegistry::instance()->filePointCloudFilters();
QVERIFY( registryPointCloudFilters.contains( "(*.laz *.las)" ) );
QVERIFY( registryPointCloudFilters.contains( "(*.laz *.las *.LAZ *.LAS)" ) );
}

void TestQgsPdalProvider::encodeUri()

0 comments on commit bcd4ebc

Please sign in to comment.