Esempio n. 1
0
        public override double Distance(ILocation location)
        {
            var l    = (LineString)Feature.Geometry;
            var path = new List <ILocation>();

            foreach (var coordinate in l.Coordinates)
            {
                path.Add(asLocation(coordinate));
            }
            return(Geo.DistanceToPath(location, path));
        }
Esempio n. 2
0
        public override double Distance(ILocation location)
        {
            var p = (Point)Feature.Geometry;

            return(Geo.Distance(location, asLocation(p.Coordinates)));
        }