Skip to content

Commit

Permalink
fix: recognize actual, correct gap
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeromos Kovács committed Oct 21, 2024
1 parent 65dc298 commit 17b575d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl Tile {
self.longitude
);
let elev = self.get_at_offset(offset.1, offset.0);
if elev.is_some_and(|e| *e == -9999) {
if elev.is_some_and(|e| *e == -9999 || *e == i16::MIN) {
eprintln!(
"WARNING: in file {:?} {coord:?} doesn't contain a valid elevation: {elev:?}",
get_filename((self.latitude, self.longitude))
Expand Down

0 comments on commit 17b575d

Please sign in to comment.