AgGateway.ADAPT.ISOv4Plugin.Writers.GuidancePatternWriter.WriteBoundary C# (CSharp) Метод

WriteBoundary() приватный статический Метод

private static WriteBoundary ( XmlWriter writer, AgGateway.ADAPT.ApplicationDataModel.Shapes.MultiPolygon boundary ) : void
writer System.Xml.XmlWriter
boundary AgGateway.ADAPT.ApplicationDataModel.Shapes.MultiPolygon
Результат void
        private static void WriteBoundary(XmlWriter writer, MultiPolygon boundary)
        {
            if (boundary == null || boundary.Polygons == null || boundary.Polygons.Count == 0)
                return;

            // Guidance pattern only supports a single polygon-based boundary
            var polygon = boundary.Polygons[0];
            ShapeWriter.WritePolygon(writer, polygon);
        }