Skip to content

Commit 13f7541

Browse files
committed
Improve SRTM filename regex
Fixes #104
1 parent 10539ed commit 13f7541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentopodata/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def _filename_to_tile_corner(cls, filename):
388388

389389
# Extract components.
390390
northing_str = (
391-
re.search(r"([NS][\dx]+)_?[WE]", filename, re.IGNORECASE)[1]
391+
re.search(r"([NS][\dx]+)_?[WE][\dx]", filename, re.IGNORECASE)[1]
392392
.lower()
393393
.replace("x", ".")
394394
)

0 commit comments

Comments
 (0)