| 123456789101112131415161718192021222324252627282930313233343536373839 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Ips.Library.Entity
- {
- public class GeoZone
- {
- public double LonMin { get; set; }
- public double LonMax { get; set; }
- public double LatMin { get; set; }
- public double LatMax { get; set; }
- public GeoZone() { }
- public GeoZone(double lonMin, double lonMax, double latMin, double latMax)
- {
- LonMin = lonMin;
- LonMax = lonMax;
- LatMin = latMin;
- LatMax = latMax;
- }
- public static readonly GeoZone Default = new GeoZone(-180, 180, -90, 90);
- public override string ToString()
- {
- return $"[{LonMin:F3},{LonMax:F3},{LatMin:F3},{LatMax:F3}]";
- }
- public double[] ToArray()
- {
- return new double[] { LonMin, LonMax, LatMin, LatMax };
- }
- }
- }
|