Skip to content

Commit 46667b9

Browse files
authored
Merge pull request #179 from GeoNode/enable_geotiff
Add geotiff to supported raster type
2 parents 799c447 + fb21a13 commit 46667b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

importer/handlers/geotiff/handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def supported_file_extension_config(self):
4141
"id": 'tiff',
4242
"label": 'GeoTIFF',
4343
"format": 'raster',
44-
"ext": ['tiff', 'tif'],
44+
"ext": ['tiff', 'tif', 'geotiff', 'geotif'],
4545
"mimeType": ['image/tiff'],
4646
"optional": ['xml', 'sld']
4747
}
@@ -56,7 +56,7 @@ def can_handle(_data) -> bool:
5656
if not base:
5757
return False
5858
ext = base.split(".")[-1] if isinstance(base, str) else base.name.split(".")[-1]
59-
return ext in ["tiff", "geotiff", "tif"]
59+
return ext in ["tiff", "geotiff", "tif", 'geotif']
6060

6161
@staticmethod
6262
def is_valid(files, user):

0 commit comments

Comments
 (0)