We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
readtiff
1 parent 5ad3fb3 commit c2d2a52Copy full SHA for c2d2a52
1 file changed
src/fileio/tiff.jl
@@ -26,10 +26,8 @@ xyz = readtiff("example.tif")
26
"""
27
function readtiff(filename::String; dst_crs::String="EPSG:3857")
28
isfile(filename) || throw(ArgumentError("file not found: $filename"))
29
- if endswith(filename, ".tif")
30
- filename *= "f" # ensure .tiff extension
31
- end
32
- endswith(filename, ".tiff") || error("filename must be a .tif file")
+ (endswith(filename, ".tiff") || endswith(filename, ".tif")) || error(
+ "filename must be a .tif or .tiff file")
33
34
@pyexec """
35
def py_tmp(tif_path, dst_crs, rasterio, np):
0 commit comments