up geolocation precision
This commit is contained in:
@@ -250,13 +250,21 @@ namespace Manut_Test_Blazor.Data
|
||||
|
||||
Serial newSerial = new()
|
||||
{
|
||||
SerialNumber = item.Serialnumber,
|
||||
SaleDate = DateOnly.FromDateTime(item.SaleDate.Value),
|
||||
PurchaseDate = DateOnly.FromDateTime(item.PurchaseDate.Value),
|
||||
SerialNumber = item.Serialnumber,
|
||||
MacAddress = item.MacAddress,
|
||||
SubLocation = item.SubLocation,
|
||||
Notes = item.Notes,
|
||||
};
|
||||
|
||||
if (item.SaleDate != null)
|
||||
{
|
||||
newSerial.SaleDate = DateOnly.FromDateTime(item.SaleDate.Value);
|
||||
}
|
||||
if (item.PurchaseDate != null)
|
||||
{
|
||||
newSerial.PurchaseDate = DateOnly.FromDateTime(item.PurchaseDate.Value);
|
||||
}
|
||||
|
||||
newSerial.Customer = _partsdbContext.Customers.Where(n => n.CustomerCode == item.Customer.Customercode.TrimEnd()).Include(l => l.Locations).SingleOrDefault();
|
||||
//Debug.WriteLine($" customer: {newSerial.Customer.Customercode}");
|
||||
if (item.Location != null)
|
||||
|
||||
@@ -68,7 +68,8 @@ internal class Program
|
||||
// default CoordinateSequenceFactory
|
||||
NetTopologySuite.Geometries.Implementation.CoordinateArraySequenceFactory.Instance,
|
||||
// default precision model
|
||||
new NetTopologySuite.Geometries.PrecisionModel(1000d),
|
||||
//new NetTopologySuite.Geometries.PrecisionModel(1000d),
|
||||
new NetTopologySuite.Geometries.PrecisionModel(NetTopologySuite.Geometries.PrecisionModels.Floating),
|
||||
// default SRID
|
||||
4326,
|
||||
/********************************************************************
|
||||
|
||||
Reference in New Issue
Block a user