/// <summary> /// Initializes a new KML <c><MultiGeometry></c> element. /// </summary> /// <param name="xml">The XML element the document should be based on.</param> /// <param name="namespaces">The XML namespace.</param> protected KmlMultiGeometry(XElement xml, XmlNamespaceManager namespaces) { Children = KmlUtils.ParseGeometryChildren(xml, namespaces).ToList(); }
/// <summary> /// Initializes a new KML <c><Document></c> element. /// </summary> /// <param name="xml">The XML element the document should be based on.</param> /// <param name="namespaces">The XML namespace.</param> protected KmlPlacemark(XElement xml, XmlNamespaceManager namespaces) : base(xml, namespaces) { ExtendedData = xml.GetElement("kml:ExtendedData", namespaces, KmlExtendedData.Parse); Geometry = KmlUtils.ParseGeometryChildren(xml, namespaces).FirstOrDefault(); }