mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 11:16:30 +00:00
add gps matcher service
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
<PackageReference Include="Polly" Version="8.5.2" />
|
||||
<PackageReference Include="RabbitMQ.Stream.Client" Version="1.8.9" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.7" />
|
||||
<PackageReference Include="Stub.System.Data.SQLite.Core.NetStandard" Version="1.0.119" />
|
||||
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.119" />
|
||||
<PackageReference Include="System.Drawing.Common" Version="5.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
public class MapConfig
|
||||
{
|
||||
public string Service { get; set; }
|
||||
public string ApiKey { get; set; }
|
||||
public string Service { get; set; } = null!;
|
||||
public string ApiKey { get; set; } = null!;
|
||||
}
|
||||
@@ -5,12 +5,12 @@ using System.IO;
|
||||
public class GpsMatchResult
|
||||
{
|
||||
public int Index { get; set; }
|
||||
public string Image { get; set; }
|
||||
public string Image { get; set; } = null!;
|
||||
public double Latitude { get; set; }
|
||||
public double Longitude { get; set; }
|
||||
public int Keypoints { get; set; }
|
||||
public int Rotation { get; set; }
|
||||
public string MatchType { get; set; }
|
||||
public int KeyPoints { get; set; }
|
||||
public int Rotation { get; set; }
|
||||
public string MatchType { get; set; } = null!;
|
||||
|
||||
public static List<GpsMatchResult> ReadFromCsv(string csvFilePath)
|
||||
{
|
||||
@@ -35,7 +35,7 @@ public class GpsMatchResult
|
||||
Image = GetFilename(values[0]),
|
||||
Latitude = double.Parse(values[1]),
|
||||
Longitude = double.Parse(values[2]),
|
||||
Keypoints = int.Parse(values[3]),
|
||||
KeyPoints = int.Parse(values[3]),
|
||||
Rotation = int.Parse(values[4]),
|
||||
MatchType = values[5]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user