Exemple #1
0
 /// <summary>
 /// Initializes a new KML <c>&lt;Point&gt;</c> element based on the specified <paramref name="latitude"/>, <paramref name="longitude"/> and <paramref name="altitude"/>.
 /// </summary>
 /// <param name="latitude">The latitude of the point.</param>
 /// <param name="longitude">The longitude of the point.</param>
 /// <param name="altitude">The altitude of the point.</param>
 public KmlPoint(double latitude, double longitude, double altitude)
 {
     Coordinates = new KmlPointCoordinates(latitude, longitude, altitude);
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new KML <c>&lt;Point&gt;</c> element.
 /// </summary>
 /// <param name="xml">The XML element the document should be based on.</param>
 /// <param name="namespaces">The XML namespace.</param>
 protected KmlPoint(XElement xml, XmlNamespaceManager namespaces) : base(xml, namespaces)
 {
     Coordinates = xml.GetElement("kml:coordinates", namespaces, KmlPointCoordinates.Parse) ?? new KmlPointCoordinates();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new empty KML <c>&lt;Point&gt;</c> element.
 /// </summary>
 public KmlPoint()
 {
     Coordinates = new KmlPointCoordinates();
 }