Skip to content

Commit

Permalink
Improve SRTM filename regex
Browse files Browse the repository at this point in the history
Fixes #104
  • Loading branch information
ajnisbet committed Dec 23, 2024
1 parent 10539ed commit 13f7541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opentopodata/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def _filename_to_tile_corner(cls, filename):

# Extract components.
northing_str = (
re.search(r"([NS][\dx]+)_?[WE]", filename, re.IGNORECASE)[1]
re.search(r"([NS][\dx]+)_?[WE][\dx]", filename, re.IGNORECASE)[1]
.lower()
.replace("x", ".")
)
Expand Down

0 comments on commit 13f7541

Please sign in to comment.