gov.nasa.worldwind.ogc.kml
Class KMLLocation
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.kml.KMLAbstractObject
gov.nasa.worldwind.ogc.kml.KMLLocation
- All Implemented Interfaces:
- MessageListener, XMLEventParser
public class KMLLocation
- extends KMLAbstractObject
Represents the KML Location element and provides access to its contents.
| Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser |
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setField, setFields, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KMLLocation
public KMLLocation(String namespaceURI)
- Construct an instance.
- Parameters:
namespaceURI - the qualifying namespace URI. May be null to indicate no namespace qualification.
getAltitude
public Double getAltitude()
getLatitude
public Double getLatitude()
getLongitude
public Double getLongitude()
getPosition
public Position getPosition()
- Retrieves this location as a
Position. Fields that are not set are treated as zero.
- Returns:
- Position object representing this location.