Skip to content

Commit

Permalink
uncovered points logged as debug
Browse files Browse the repository at this point in the history
  • Loading branch information
xfischer committed Jan 13, 2021
1 parent af082a8 commit 6458208
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DEM.Net.Core/Services/Elevation/ElevationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ public GeoPoint GetPointElevation(double lat, double lon, DEMDataSet dataSet, In

if (tile == null)
{
_logger?.LogWarning($"No coverage found matching provided point {geoPoint} for dataset {dataSet.Name}");
_logger?.LogDebug($"No coverage found matching provided point {geoPoint} for dataset {dataSet.Name}");
return null;
}
else
Expand Down Expand Up @@ -1205,7 +1205,7 @@ public FileMetadata GetCoveringFile(double lat, double lon, DEMDataSet dataSet,

if (bboxMetadata.Count == 0)
{
_logger?.LogWarning($"No coverage found matching provided point {geoPoint}.");
_logger?.LogDebug($"No coverage found matching provided point {geoPoint}.");
//throw new NoCoverageException(dataSet, lat, lon, $"No coverage found matching provided point {geoPoint}.");
}
else if (bboxMetadata.Count > 1)
Expand Down Expand Up @@ -1405,7 +1405,7 @@ private FileMetadata FindTile(FileMetadata mainTile, RasterFileDictionary tiles,
if (x == mainTile.Width
|| y == mainTile.Height)
{
_logger.LogWarning($"No adjacent tile found (adjacent tiles may not have been set). Returning main tile. (x,y, tile) = ({x},{y},{mainTile})");
_logger.LogDebug($"No adjacent tile found (adjacent tiles may not have been set). Returning main tile. (x,y, tile) = ({x},{y},{mainTile})");
newX = x == mainTile.Width ? mainTile.Width - 1 : x;
newY = y == mainTile.Height ? mainTile.Height - 1 : y;
return mainTile;
Expand Down

0 comments on commit 6458208

Please sign in to comment.