Example #1
0
        public static MultiPolygon FixWeatherPolygon(MultiPolygon multiPolygon)
        {
            var newMultiPolygon = new MultiPolygon();

            if (multiPolygon.Count == 0 || multiPolygon == null)
            {
                return(newMultiPolygon);
            }

            multiPolygon.ForEach(x => newMultiPolygon.Add(new Polygon {
                x[1], x[0]
            }));
            newMultiPolygon.Add(newMultiPolygon[newMultiPolygon.Count - 1]);
            return(newMultiPolygon);
        }