We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 65aa1d5 commit 5c38ed8Copy full SHA for 5c38ed8
src/plugins/heatmap/heatmapgui.cpp
@@ -63,7 +63,9 @@ HeatmapGui::HeatmapGui( QWidget* parent, Qt::WFlags fl )
63
{
64
GDALDriver* nthDriver = GetGDALDriverManager()->GetDriver( i );
65
char** driverMetadata = nthDriver->GetMetadata();
66
- if ( CSLFetchBoolean( driverMetadata, GDAL_DCAP_CREATE, false ) )
+ // Only formats which allow creation of Float32 data types are valid
67
+ if ( CSLFetchBoolean( driverMetadata, GDAL_DCAP_CREATE, false ) &&
68
+ QString( nthDriver->GetMetadataItem( GDAL_DMD_CREATIONDATATYPES, NULL ) ).contains( "Float32" ) )
69
70
++myIndex;
71
QString myLongName = nthDriver->GetMetadataItem( GDAL_DMD_LONGNAME );
0 commit comments