de.micromata.opengis.kml.v_2_2_0.Placemark Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaAPIforKml Show documentation
Show all versions of JavaAPIforKml Show documentation
This is JavaAPIforKMml, Micromata's library for use with applications that want to parse, generate and operate on KML. It is an implementation of the OGC KML 2.2 standard. It is written entirely in Java and makes heavy use of JAXB.
package de.micromata.opengis.kml.v_2_2_0;
import de.micromata.opengis.kml.v_2_2_0.annotations.Obvious;
import de.micromata.opengis.kml.v_2_2_0.atom.Author;
import de.micromata.opengis.kml.v_2_2_0.atom.Link;
import de.micromata.opengis.kml.v_2_2_0.gx.MultiTrack;
import de.micromata.opengis.kml.v_2_2_0.gx.Track;
import de.micromata.opengis.kml.v_2_2_0.xal.AddressDetails;
import jakarta.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
/**
* {@code }
*
* A Placemark is a Feature with associated Geometry. In Google Earth, a Placemark
* appears as a list item in the Places panel. A Placemark with a Point has an icon
* associated with it that marks a point on the Earth in the 3D viewer. (In the Google
* Earth 3D viewer, a Point Placemark is the only object you can click or roll over.
* Other Geometry objects do not have an icon in the 3D viewer. To give the user something
* to click in the 3D viewer, you would need to create a MultiGeometry object that
* contains both a Point and the other Geometry object.)
*
*
* Syntax:
* <Placemark id="ID">
* <!-- inherited from Feature element -->
* <name>...</name> <!-- string -->
* <visibility>1</visibility> <!-- boolean -->
* <open>0</open> <!-- boolean -->
* <atom:author>...<atom:author> <!-- xmlns:atom -->
* <atom:link>...</atom:link> <!-- xmlns:atom -->
* <address>...</address> <!-- string -->
* <xal:AddressDetails>...</xal:AddressDetails> <!-- xmlns:xal -->
<phoneNumber>...</phoneNumber> <!-- string -->
<Snippet maxLines="2">...</Snippet> <!-- string -->
* <description>...</description> <!-- string -->
* <AbstractView>...</AbstractView> <!-- Camera or LookAt -->
* <TimePrimitive>...</TimePrimitive>
* <styleUrl>...</styleUrl> <!-- anyURI -->
* <StyleSelector>...</StyleSelector>
* <Region>...</Region>
* <Metadata>...</Metadata> <!-- deprecated in KML 2.2 -->
* <ExtendedData>...</ExtendedData> <!-- new in KML 2.2 -->
* <!-- specific to Placemark element -->
* <Geometry>...</Geometry>
* </Placemark>
*
* Extends:
*
*
* Contained By:
*
*
*
* See Also:
* {@code }
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PlacemarkType", propOrder = {
"geometry",
"placemarkSimpleExtension",
"placemarkObjectExtension"
})
@XmlRootElement(name = "Placemark", namespace = "http://www.opengis.net/kml/2.2")
public class Placemark
extends Feature
implements Cloneable
{
/**
* {@code }
*
* This is an abstract element and cannot be used directly in a KML file. It provides
* a placeholder object for all derived Geometry objects.
*
*
* Syntax:
* <!-- abstract element; do not create -->
* <!-- Geometry id="ID" --> <!-- Point,LineString,LinearRing,
* Polygon,MultiGeometry,Model -->
* <!-- /Geometry -->
*
* Extends:
*
*
* Extended By:
*
*
*
*
*
*
*
*
*
*/
@XmlElementRef(name = "AbstractGeometryGroup", namespace = "http://www.opengis.net/kml/2.2", required = false)
protected Geometry geometry;
@XmlElement(name = "PlacemarkSimpleExtensionGroup")
@XmlSchemaType(name = "anySimpleType")
protected List