Inheritance: IWriter
Beispiel #1
0
        public PLN Map(MultiPolygon polygon, BoundaryType type, string name)
        {
            var isoPolygon = new PLN
            {
                A = ConvertPolygonType(type),
                B = name
            };
            var exteriors = polygon.Polygons.Select(p => p.ExteriorRing).SelectMany(x => Map(x, LSGA.Item1));
            var interiors = polygon.Polygons.SelectMany(p => p.InteriorRings).SelectMany(x => Map(x, LSGA.Item2));
            isoPolygon.Items = exteriors.Concat(interiors).ToArray();

            return isoPolygon;
        }
Beispiel #2
0
 public void Setup()
 {
     _pln = new PLN();
     _output = new StringBuilder();
     _xmlBuilder = XmlWriter.Create(_output);
 }