mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Only allow choice of heatmap raster formats which support Float32 data types
This commit is contained in:
parent
65aa1d5ae0
commit
5c38ed8559
@ -63,7 +63,9 @@ HeatmapGui::HeatmapGui( QWidget* parent, Qt::WFlags fl )
|
||||
{
|
||||
GDALDriver* nthDriver = GetGDALDriverManager()->GetDriver( i );
|
||||
char** driverMetadata = nthDriver->GetMetadata();
|
||||
if ( CSLFetchBoolean( driverMetadata, GDAL_DCAP_CREATE, false ) )
|
||||
// Only formats which allow creation of Float32 data types are valid
|
||||
if ( CSLFetchBoolean( driverMetadata, GDAL_DCAP_CREATE, false ) &&
|
||||
QString( nthDriver->GetMetadataItem( GDAL_DMD_CREATIONDATATYPES, NULL ) ).contains( "Float32" ) )
|
||||
{
|
||||
++myIndex;
|
||||
QString myLongName = nthDriver->GetMetadataItem( GDAL_DMD_LONGNAME );
|
||||
|
Loading…
x
Reference in New Issue
Block a user