de.micromata.opengis.kml.v_2_2_0
Class Location

java.lang.Object
  extended by de.micromata.opengis.kml.v_2_2_0.AbstractObject
      extended by de.micromata.opengis.kml.v_2_2_0.Location
All Implemented Interfaces:
java.lang.Cloneable

public class Location
extends AbstractObject
implements java.lang.Cloneable

Specifies the exact coordinates of the Model's origin in latitude, longitude, and altitude. Latitude and longitude measurements are standard lat-lon projection with WGS84 datum. Altitude is distance above the earth's surface, in meters, and is interpreted according to or . 39.55375305703105 -118.9813220168456 1223


Field Summary
protected  double altitude
          
protected  double latitude
          
protected  java.util.List<AbstractObject> locationObjectExtension
          
protected  java.util.List<java.lang.Object> locationSimpleExtension
           
protected  double longitude
          
 
Fields inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject
id, objectSimpleExtension, targetId
 
Constructor Summary
Location()
           
 
Method Summary
 Location addToLocationObjectExtension(AbstractObject locationObjectExtension)
          add a value to the locationObjectExtension property collection
 Location addToLocationSimpleExtension(java.lang.Object locationSimpleExtension)
          add a value to the locationSimpleExtension property collection
 Location addToObjectSimpleExtension(java.lang.Object objectSimpleExtension)
          add a value to the objectSimpleExtension property collection
 Location clone()
           
 boolean equals(java.lang.Object obj)
           
 double getAltitude()
           
 double getLatitude()
           
 java.util.List<AbstractObject> getLocationObjectExtension()
           
 java.util.List<java.lang.Object> getLocationSimpleExtension()
           
 double getLongitude()
           
 int hashCode()
           
 void setAltitude(double value)
           
 void setLatitude(double value)
           
 void setLocationObjectExtension(java.util.List<AbstractObject> locationObjectExtension)
           
 void setLocationSimpleExtension(java.util.List<java.lang.Object> locationSimpleExtension)
           
 void setLongitude(double value)
           
 void setObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
           
 Location withAltitude(double altitude)
          fluent setter
 Location withId(java.lang.String id)
          fluent setter
 Location withLatitude(double latitude)
          fluent setter
 Location withLocationObjectExtension(java.util.List<AbstractObject> locationObjectExtension)
          fluent setter
 Location withLocationSimpleExtension(java.util.List<java.lang.Object> locationSimpleExtension)
          fluent setter
 Location withLongitude(double longitude)
          fluent setter
 Location withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
          fluent setter
 Location withTargetId(java.lang.String targetId)
          fluent setter
 
Methods inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject
getId, getObjectSimpleExtension, getTargetId, setId, setTargetId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

longitude

protected double longitude

Longitude of the point the camera is looking at. Angular distance in degrees, relative to the Prime Meridian. Values west of the Meridian range from −180 to 0 degrees. Values east of the Meridian range from 0 to 180 degrees.

Longitude of the virtual camera (eye point). Angular distance in degrees, relative to the Prime Meridian. Values west of the Meridian range from −180 to 0 degrees. Values east of the Meridian range from 0 to 180 degrees.


latitude

protected double latitude

Latitude of the point the camera is looking at. Degrees north or south of the Equator (0 degrees). Values range from −90 degrees to 90 degrees.

Latitude of the virtual camera. Degrees north or south of the Equator (0 degrees). Values range from −90 degrees to 90 degrees.


altitude

protected double altitude

Distance from the earth's surface, in meters. Interpreted according to the LookAt's altitude mode.

Distance of the camera from the earth's surface, in meters. Interpreted according to the Camera's or .

Specifies the distance above the earth's surface, in meters, and is interpreted according to the altitude mode.


locationSimpleExtension

protected java.util.List<java.lang.Object> locationSimpleExtension

locationObjectExtension

protected java.util.List<AbstractObject> locationObjectExtension

This is an abstract base class and cannot be used directly in a KML file. It provides the id attribute, which allows unique identification of a KML element, and the targetId attribute, which is used to reference objects that have already been loaded into Google Earth. The id attribute must be assigned if the mechanism is to be used.

Syntax:
<!-- abstract element; do not create -->
 <!-- Object id="ID" targetId="NCName" -->
 <!-- /Object> -->

Constructor Detail

Location

public Location()
Method Detail

getLongitude

public double getLongitude()
Returns:
possible object is Double
See Also:
longitude

setLongitude

public void setLongitude(double value)
Parameters:
value - allowed object is Double
See Also:
longitude

getLatitude

public double getLatitude()
Returns:
possible object is Double
See Also:
latitude

setLatitude

public void setLatitude(double value)
Parameters:
value - allowed object is Double
See Also:
latitude

getAltitude

public double getAltitude()
Returns:
possible object is Double
See Also:
altitude

setAltitude

public void setAltitude(double value)
Parameters:
value - allowed object is Double
See Also:
altitude

getLocationSimpleExtension

public java.util.List<java.lang.Object> getLocationSimpleExtension()
See Also:
locationSimpleExtension

getLocationObjectExtension

public java.util.List<AbstractObject> getLocationObjectExtension()
See Also:
locationObjectExtension

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractObject

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractObject

setLocationSimpleExtension

public void setLocationSimpleExtension(java.util.List<java.lang.Object> locationSimpleExtension)
Parameters:
locationSimpleExtension -
See Also:
locationSimpleExtension

addToLocationSimpleExtension

public Location addToLocationSimpleExtension(java.lang.Object locationSimpleExtension)
add a value to the locationSimpleExtension property collection

Parameters:
locationSimpleExtension - Objects of the following type are allowed in the list: Object
Returns:
true (as general contract of Collection.add).

setLocationObjectExtension

public void setLocationObjectExtension(java.util.List<AbstractObject> locationObjectExtension)
Parameters:
locationObjectExtension -
See Also:
locationObjectExtension

addToLocationObjectExtension

public Location addToLocationObjectExtension(AbstractObject locationObjectExtension)
add a value to the locationObjectExtension property collection

Parameters:
locationObjectExtension - Objects of the following type are allowed in the list: AbstractObject
Returns:
true (as general contract of Collection.add).

setObjectSimpleExtension

public void setObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
Overrides:
setObjectSimpleExtension in class AbstractObject
See Also:
objectSimpleExtension

addToObjectSimpleExtension

public Location addToObjectSimpleExtension(java.lang.Object objectSimpleExtension)
Description copied from class: AbstractObject
add a value to the objectSimpleExtension property collection

Overrides:
addToObjectSimpleExtension in class AbstractObject
Parameters:
objectSimpleExtension - Objects of the following type are allowed in the list: Object
Returns:
true (as general contract of Collection.add).

withLongitude

public Location withLongitude(double longitude)
fluent setter

Parameters:
longitude - required parameter
See Also:
setLongitude(double)

withLatitude

public Location withLatitude(double latitude)
fluent setter

Parameters:
latitude - required parameter
See Also:
setLatitude(double)

withAltitude

public Location withAltitude(double altitude)
fluent setter

Parameters:
altitude - required parameter
See Also:
setAltitude(double)

withLocationSimpleExtension

public Location withLocationSimpleExtension(java.util.List<java.lang.Object> locationSimpleExtension)
fluent setter

Parameters:
locationSimpleExtension - required parameter
See Also:
#setLocationSimpleExtension(List)

withLocationObjectExtension

public Location withLocationObjectExtension(java.util.List<AbstractObject> locationObjectExtension)
fluent setter

Parameters:
locationObjectExtension - required parameter
See Also:
#setLocationObjectExtension(List)

withObjectSimpleExtension

public Location withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
Description copied from class: AbstractObject
fluent setter

Overrides:
withObjectSimpleExtension in class AbstractObject
Parameters:
objectSimpleExtension - required parameter
See Also:
#setObjectSimpleExtension(List)

withId

public Location withId(java.lang.String id)
Description copied from class: AbstractObject
fluent setter

Overrides:
withId in class AbstractObject
Parameters:
id - required parameter
See Also:
AbstractObject.setId(String)

withTargetId

public Location withTargetId(java.lang.String targetId)
Description copied from class: AbstractObject
fluent setter

Overrides:
withTargetId in class AbstractObject
Parameters:
targetId - required parameter
See Also:
AbstractObject.setTargetId(String)

clone

public Location clone()
Overrides:
clone in class AbstractObject