Esempio n. 1
0
 public static Position MapPoint(AgGateway.ADAPT.ApplicationDataModel.Shapes.Point point, AffineTransformation affineTransformation = null)
 {
     if (affineTransformation != null)
     {
         var movedPoint = AnonymizeUtils.MovePoint(point, affineTransformation);
         return(new Position(movedPoint.Y, movedPoint.X, point.Z));
     }
     else
     {
         return(new Position(point.Y, point.X, point.Z));
     }
 }
Esempio n. 2
0
        public static GeoJSON.Net.Geometry.Point MapPoint2Point(AgGateway.ADAPT.ApplicationDataModel.Shapes.Point point, AffineTransformation affineTransformation = null)
        {
            Position position = null;

            if (affineTransformation != null)
            {
                var movedPoint = AnonymizeUtils.MovePoint(point, affineTransformation);
                position = new Position(movedPoint.Y, movedPoint.X, point.Z);
            }
            else
            {
                position = new Position(point.Y, point.X, point.Z);
            }
            return(new GeoJSON.Net.Geometry.Point(position));
        }