public class Point extends Geometry implements Cloneable
A geographic location defined by longitude, latitude, and (optional) altitude. When a Point is contained by a Placemark, the point itself determines the position of the Placemark's name and icon. When a Point is extruded, it is connected to the ground with a line. This "tether" uses the current LineStyle.
The
<Point id="ID">
<!-- specific to Point -->
<extrude>0</extrude> <!-- boolean -->
<altitudeMode>clampToGround</altitudeMode>
<!-- kml:altitudeModeEnum: clampToGround, relativeToGround, or absolute -->
<!-- or, substitute gx:altitudeMode: clampToSeaFloor, relativeToSeaFloor -->
<coordinates>...</coordinates> <!-- lon,lat[,alt] -->
</Point>
Extends:| Modifier and Type | Field and Description |
|---|---|
protected AltitudeMode |
altitudeMode
AltitudeMode
clampToGround, relativeToGround, absolute
See Also:
See
|
protected List<Coordinate> |
coordinates
|
protected Boolean |
extrude
|
protected List<AbstractObject> |
pointObjectExtension
|
protected List<Object> |
pointSimpleExtension |
geometryObjectExtension, geometrySimpleExtensionid, objectSimpleExtension, targetId| Constructor and Description |
|---|
Point() |
| Modifier and Type | Method and Description |
|---|---|
Point |
addToCoordinates(double longitude,
double latitude)
add a value to the coordinates property collection
|
Point |
addToCoordinates(double longitude,
double latitude,
double altitude)
add a value to the coordinates property collection
|
Point |
addToCoordinates(String coordinates)
add a value to the coordinates property collection
|
Point |
addToGeometryObjectExtension(AbstractObject geometryObjectExtension)
add a value to the geometryObjectExtension property collection
|
Point |
addToGeometrySimpleExtension(Object geometrySimpleExtension)
add a value to the geometrySimpleExtension property collection
|
Point |
addToObjectSimpleExtension(Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection
|
Point |
addToPointObjectExtension(AbstractObject pointObjectExtension)
add a value to the pointObjectExtension property collection
|
Point |
addToPointSimpleExtension(Object pointSimpleExtension)
add a value to the pointSimpleExtension property collection
|
Point |
clone() |
List<Coordinate> |
createAndSetCoordinates()
|
boolean |
equals(Object obj) |
AltitudeMode |
getAltitudeMode() |
List<Coordinate> |
getCoordinates() |
List<AbstractObject> |
getPointObjectExtension() |
List<Object> |
getPointSimpleExtension() |
int |
hashCode() |
Boolean |
isExtrude() |
void |
setAltitudeMode(AltitudeMode value) |
void |
setCoordinates(List<Coordinate> coordinates) |
void |
setExtrude(Boolean value) |
void |
setGeometryObjectExtension(List<AbstractObject> geometryObjectExtension) |
void |
setGeometrySimpleExtension(List<Object> geometrySimpleExtension) |
void |
setObjectSimpleExtension(List<Object> objectSimpleExtension) |
void |
setPointObjectExtension(List<AbstractObject> pointObjectExtension) |
void |
setPointSimpleExtension(List<Object> pointSimpleExtension) |
Point |
withAltitudeMode(AltitudeMode altitudeMode)
fluent setter
|
Point |
withCoordinates(List<Coordinate> coordinates)
fluent setter
|
Point |
withExtrude(Boolean extrude)
fluent setter
|
Point |
withGeometryObjectExtension(List<AbstractObject> geometryObjectExtension)
fluent setter
|
Point |
withGeometrySimpleExtension(List<Object> geometrySimpleExtension)
fluent setter
|
Point |
withId(String id)
fluent setter
|
Point |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
Point |
withPointObjectExtension(List<AbstractObject> pointObjectExtension)
fluent setter
|
Point |
withPointSimpleExtension(List<Object> pointSimpleExtension)
fluent setter
|
Point |
withTargetId(String targetId)
fluent setter
|
getGeometryObjectExtension, getGeometrySimpleExtensiongetId, getObjectSimpleExtension, getTargetId, setId, setTargetIdprotected Boolean extrude
Boolean value. Specifies whether to connect the LineString to the ground. To extrude a LineString, the altitude mode must be either relativeToGround, relativeToSeaFloor, or absolute. The vertices in the LineString are extruded toward the center of the Earth's sphere.
Boolean value. Specifies whether to connect the LinearRing to the ground. To extrude this geometry, the altitude mode must be either relativeToGround, relativeToSeaFloor, or absolute. Only the vertices of the LinearRing are extruded, not the center of the geometry. The vertices are extruded toward the center of the Earth's sphere.
Boolean value. Specifies whether to connect the Polygon to the ground. To extrude a Polygon, the altitude mode must be either relativeToGround, relativeToSeaFloor, or absolute. Only the vertices are extruded, not the geometry itself (for example, a rectangle turns into a box with five faces. The vertices of the Polygon are extruded toward the center of the Earth's sphere.
Boolean value. Specifies whether to connect the point to the ground with a line.
To extrude a Point, the value for
protected AltitudeMode altitudeMode
clampToGround, relativeToGround, absolute
See Also: Seeprotected List<Coordinate> coordinates
A single tuple consisting of floating point values for longitude, latitude, and altitude (in that order). Longitude and latitude values are in degrees, where longitude ≥ −180 and <= 180 latitude ≥ −90 and ≤ 90 altitude values (optional) are in meters above sea level
Do not include spaces between the three values that describe a coordinate.
Two or more coordinate tuples, each consisting of floating point values for longitude, latitude, and altitude. The altitude component is optional. Insert a space between tuples. Do not include spaces within a tuple.
protected List<AbstractObject> pointObjectExtension
public void setExtrude(Boolean value)
value - allowed object is
Booleanextrudepublic AltitudeMode getAltitudeMode()
<Object
<AltitudeMode
<de.micromata.opengis.kml.v_2_2_0.gx.AltitudeModealtitudeModepublic void setAltitudeMode(AltitudeMode value)
value - allowed object is
<Object
<AltitudeMode
<de.micromata.opengis.kml.v_2_2_0.gx.AltitudeModealtitudeModepublic List<AbstractObject> getPointObjectExtension()
pointObjectExtensionpublic List<Coordinate> getCoordinates()
coordinatespublic void setCoordinates(List<Coordinate> coordinates)
coordinates - coordinatespublic Point addToCoordinates(double longitude, double latitude)
longitude - required parameterlatitude - required parameterpublic Point addToCoordinates(double longitude, double latitude, double altitude)
longitude - required parameterlatitude - required parameteraltitude - required parameterpublic Point addToCoordinates(String coordinates)
coordinates - required parameterpublic void setPointSimpleExtension(List<Object> pointSimpleExtension)
pointSimpleExtension - pointSimpleExtensionpublic Point addToPointSimpleExtension(Object pointSimpleExtension)
pointSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setPointObjectExtension(List<AbstractObject> pointObjectExtension)
pointObjectExtension - pointObjectExtensionpublic Point addToPointObjectExtension(AbstractObject pointObjectExtension)
pointObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic void setObjectSimpleExtension(List<Object> objectSimpleExtension)
setObjectSimpleExtension in class GeometryobjectSimpleExtensionpublic Point addToObjectSimpleExtension(Object objectSimpleExtension)
AbstractObjectaddToObjectSimpleExtension in class GeometryobjectSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setGeometrySimpleExtension(List<Object> geometrySimpleExtension)
setGeometrySimpleExtension in class GeometrygeometrySimpleExtensionpublic Point addToGeometrySimpleExtension(Object geometrySimpleExtension)
GeometryaddToGeometrySimpleExtension in class GeometrygeometrySimpleExtension - Objects of the following type are allowed in the list: <ObjectJAXBElement<BigIntegerJAXBElement<Doublepublic void setGeometryObjectExtension(List<AbstractObject> geometryObjectExtension)
setGeometryObjectExtension in class GeometrygeometryObjectExtensionpublic Point addToGeometryObjectExtension(AbstractObject geometryObjectExtension)
GeometryaddToGeometryObjectExtension in class GeometrygeometryObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic Point withExtrude(Boolean extrude)
extrude - required parametersetExtrude(Boolean)public Point withAltitudeMode(AltitudeMode altitudeMode)
altitudeMode - required parameter#setAltitudeMode(Object)public Point withCoordinates(List<Coordinate> coordinates)
coordinates - required parameter#setCoordinates(List) public Point withPointSimpleExtension(List<Object> pointSimpleExtension)
pointSimpleExtension - required parameter#setPointSimpleExtension(Listpublic Point withPointObjectExtension(List<AbstractObject> pointObjectExtension)
pointObjectExtension - required parameter#setPointObjectExtension(List) public Point withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class GeometryobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic Point withId(String id)
AbstractObjectwithId in class Geometryid - required parameterAbstractObject.setId(String)public Point withTargetId(String targetId)
AbstractObjectwithTargetId in class GeometrytargetId - required parameterAbstractObject.setTargetId(String)public Point withGeometrySimpleExtension(List<Object> geometrySimpleExtension)
GeometrywithGeometrySimpleExtension in class GeometrygeometrySimpleExtension - required parameter#setGeometrySimpleExtension(Listpublic Point withGeometryObjectExtension(List<AbstractObject> geometryObjectExtension)
GeometrywithGeometryObjectExtension in class GeometrygeometryObjectExtension - required parameter#setGeometryObjectExtension(List) public List<Coordinate> createAndSetCoordinates()
List<Coordinate and set it to this.coordinates.
This method is a short version for:
List newValue = new List();
this.setCoordinates(newValue);
Copyright © 2014 Micromata GmbH. All rights reserved.