mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-21 15:51:14 +00:00
534ab41b8e
Pure whitespace-only cleanup uncovered by the new format gate from the previous commit. Verified via `git diff -w --stat`: only 4 files differ when whitespace is ignored, and those differ only by the BOM byte. Cleanup kinds applied across 22 source files: - BOM removal (MapConfig.cs, SatTile.cs, GeoUtils.cs, IntegrationTests/Program.cs) - CRLF -> LF (IntegrationTests/Program.cs) - Trailing whitespace on blank lines (Common, Api, DataAccess, IntegrationTests, Services.RegionProcessing, Services.TileDownloader) - Final newline added (RoutePoint.cs, GeoPoint.cs, others) After this commit `dotnet format whitespace SatelliteProvider.sln --verify-no-changes` exits 0; AC-1 is enforceable from `scripts/ run-tests.sh` going forward. Also lands the batch 22 report, code-review report (PASS_WITH_WARNINGS, 2 Low findings — both deferred per spec), dependency-table status update (AZ-372 -> Done (In Testing)), task archive (todo/ -> done/), and autodev state update. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
795 B
C#
33 lines
795 B
C#
using SatelliteProvider.Common.Utils;
|
|
|
|
namespace SatelliteProvider.Common.DTO;
|
|
|
|
public class SatTile
|
|
{
|
|
public int X { get; }
|
|
public int Y { get; }
|
|
public int Zoom { get; }
|
|
public GeoPoint LeftTop { get; }
|
|
public GeoPoint BottomRight { get; }
|
|
public string Url { get; set; }
|
|
|
|
|
|
public SatTile(int x, int y, int zoom, string url)
|
|
{
|
|
X = x;
|
|
Y = y;
|
|
Zoom = zoom;
|
|
Url = url;
|
|
|
|
LeftTop = GeoUtils.TileToWorldPos(x, y, zoom);
|
|
BottomRight = GeoUtils.TileToWorldPos(x + 1, y + 1, zoom);
|
|
}
|
|
|
|
public string FileName => $"{X}.{Y}.{Zoom}.jpg";
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"Tile[X={X}, Y={Y}, TL=({LeftTop.Lat:F6}, {LeftTop.Lon:F6}), BR=({BottomRight.Lat:F6}, {BottomRight.Lon:F6})]";
|
|
}
|
|
}
|