Ejemplo n.º 1
0
        public static UrbanChallenge.Common.Shapes.Polygon ToShapePolygon(GpcWrapper.Polygon input)
        {
            PointF[]           polyPoints = input.ToGraphicsPath().PathPoints;
            List <Coordinates> polyCoords = new List <Coordinates>();

            for (int i = 0; i < polyPoints.Length; i++)
            {
                polyCoords.Add(DrawingUtility.ToCoord(polyPoints[i]));
            }

            return(new UrbanChallenge.Common.Shapes.Polygon(polyCoords));
        }