Skip to content

Commit

Permalink
SNAP_TIFF: do not declare extension to avoid confusing QGIS
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Oct 16, 2024
1 parent c72acef commit d6d8b11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
VRT -raster,multidimensional raster- (rw+v): Virtual Raster (*.vrt)
DERIVED -raster- (ro): Derived datasets using VRT pixel functions
GTI -raster- (rov): GDAL Raster Tile Index (*.gti.gpkg, *.gti.fgb, *.gti)
SNAP_TIFF -raster- (rov): Sentinel Application Processing GeoTIFF (*.tif, *.tiff)
SNAP_TIFF -raster- (rov): Sentinel Application Processing GeoTIFF
GTiff -raster- (rw+vs): GeoTIFF (*.tif, *.tiff)
COG -raster- (wv): Cloud optimized GeoTIFF generator (*.tif, *.tiff)
NITF -raster- (rw+vs): National Imagery Transmission Format (*.ntf)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
VRT -raster,multidimensional raster- (rw+v): Virtual Raster (*.vrt)
DERIVED -raster- (ro): Derived datasets using VRT pixel functions
GTI -raster- (rov): GDAL Raster Tile Index (*.gti.gpkg, *.gti.fgb, *.gti)
SNAP_TIFF -raster- (rov): Sentinel Application Processing GeoTIFF (*.tif, *.tiff)
SNAP_TIFF -raster- (rov): Sentinel Application Processing GeoTIFF
GTiff -raster- (rw+vs): GeoTIFF (*.tif, *.tiff)
COG -raster- (wv): Cloud optimized GeoTIFF generator (*.tif, *.tiff)
NITF -raster- (rw+vs): National Imagery Transmission Format (*.ntf)
Expand Down
7 changes: 5 additions & 2 deletions frmts/snap_tiff/snaptiffdriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,11 @@ void GDALRegister_SNAP_TIFF()
"Sentinel Application Processing GeoTIFF");
poDriver->SetMetadataItem(GDAL_DMD_HELPTOPIC,
"drivers/raster/snap_tiff.html");
poDriver->SetMetadataItem(GDAL_DMD_MIMETYPE, "image/tiff");
poDriver->SetMetadataItem(GDAL_DMD_EXTENSIONS, "tif tiff");
// Declaring the tif extension confuses QGIS
// Cf https://github.com/qgis/QGIS/issues/59112
// This driver is of too marginal usage to justify causing chaos downstream.
// poDriver->SetMetadataItem(GDAL_DMD_MIMETYPE, "image/tiff");
// poDriver->SetMetadataItem(GDAL_DMD_EXTENSIONS, "tif tiff");
poDriver->SetMetadataItem(GDAL_DCAP_VIRTUALIO, "YES");

poDriver->pfnOpen = SNAPTIFFDataset::Open;
Expand Down

0 comments on commit d6d8b11

Please sign in to comment.