Пример #1
0
        public static IEnumerable <ISOGuidancePattern> ReadXML(XmlNodeList nodes)
        {
            List <ISOGuidancePattern> items = new List <ISOGuidancePattern>();

            foreach (XmlNode node in nodes)
            {
                items.Add(ISOGuidancePattern.ReadXML(node));
            }
            return(items);
        }
Пример #2
0
        public static ISOGuidanceGroup ReadXML(XmlNode node)
        {
            ISOGuidanceGroup item = new ISOGuidanceGroup();

            item.GuidanceGroupId         = node.GetXmlNodeValue("@A");
            item.GuidanceGroupDesignator = node.GetXmlNodeValue("@B");

            XmlNodeList gpnNodes = node.SelectNodes("GPN");

            if (gpnNodes != null)
            {
                item.GuidancePatterns.AddRange(ISOGuidancePattern.ReadXML(gpnNodes));
            }

            XmlNodeList plnNodes = node.SelectNodes("PLN");

            if (plnNodes != null)
            {
                item.BoundaryPolygons.AddRange(ISOPolygon.ReadXML(plnNodes));
            }
            return(item);
        }
Пример #3
0
        public static ISOGuidancePattern ReadXML(XmlNode node)
        {
            ISOGuidancePattern item = new ISOGuidancePattern();

            item.GuidancePatternId         = node.GetXmlNodeValue("@A");
            item.GuidancePatternDesignator = node.GetXmlNodeValue("@B");
            item.GuidancePatternTypeInt    = node.GetXmlNodeValueAsInt("@C");
            item.GuidancePatternOptionsInt = node.GetXmlNodeValueAsNullableInt("@D");
            item.PropagationDirectionInt   = node.GetXmlNodeValueAsNullableInt("@E");
            item.ExtensionInt        = node.GetXmlNodeValueAsNullableInt("@F");
            item.Heading             = node.GetXmlNodeValueAsNullableDecimal("@G");
            item.Radius              = node.GetXmlNodeValueAsNullableUInt("@H");
            item.GNSSMethodInt       = node.GetXmlNodeValueAsNullableInt("@I");
            item.HorizontalAccuracy  = node.GetXmlNodeValueAsNullableDecimal("@J");
            item.VerticalAccuracy    = node.GetXmlNodeValueAsNullableDecimal("@K");
            item.BaseStationRef      = node.GetXmlNodeValue("@L");
            item.OriginalSRID        = node.GetXmlNodeValue("@M");
            item.NumberOfSwathsLeft  = node.GetXmlNodeValueAsNullableUInt("@N");
            item.NumberOfSwathsRight = node.GetXmlNodeValueAsNullableUInt("@O");

            XmlNode lsgNode = node.SelectSingleNode("LSG");

            if (lsgNode != null)
            {
                item.LineString = ISOLineString.ReadXML(lsgNode);
            }

            XmlNodeList plnNodes = node.SelectNodes("PLN");

            if (plnNodes != null)
            {
                item.BoundaryPolygons.AddRange(ISOPolygon.ReadXML(plnNodes));
            }

            return(item);
        }