public class LineString extends Geometry implements Cloneable
Defines a connected set of line segments. Use
<LineString id="ID">
<!-- specific to LineString -->
<extrude>0</extrude> <!-- boolean -->
<tessellate>0</tessellate> <!-- boolean -->
<altitudeMode>clampToGround</altitudeMode>
<!-- kml:altitudeModeEnum: clampToGround, relativeToGround, or absolute -->
<!-- or, substitute gx:altitudeMode: clampToSeaFloor, relativeToSeaFloor -->
<!-- or, substitute gx:altitudeMode: clampToSeaFloor, relativeToSeaFloor -->
<coordinates>...</coordinates> <!-- lon,lat[,alt] -->
</LineString>
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> |
lineStringObjectExtension
|
protected List<Object> |
lineStringSimpleExtension |
protected Boolean |
tessellate
|
geometryObjectExtension, geometrySimpleExtensionid, objectSimpleExtension, targetId| Constructor and Description |
|---|
LineString() |
| Modifier and Type | Method and Description |
|---|---|
LineString |
addToCoordinates(double longitude,
double latitude)
add a value to the coordinates property collection
|
LineString |
addToCoordinates(double longitude,
double latitude,
double altitude)
add a value to the coordinates property collection
|
LineString |
addToCoordinates(String coordinates)
add a value to the coordinates property collection
|
LineString |
addToGeometryObjectExtension(AbstractObject geometryObjectExtension)
add a value to the geometryObjectExtension property collection
|
LineString |
addToGeometrySimpleExtension(Object geometrySimpleExtension)
add a value to the geometrySimpleExtension property collection
|
LineString |
addToLineStringObjectExtension(AbstractObject lineStringObjectExtension)
add a value to the lineStringObjectExtension property collection
|
LineString |
addToLineStringSimpleExtension(Object lineStringSimpleExtension)
add a value to the lineStringSimpleExtension property collection
|
LineString |
addToObjectSimpleExtension(Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection
|
LineString |
clone() |
List<Coordinate> |
createAndSetCoordinates()
|
boolean |
equals(Object obj) |
AltitudeMode |
getAltitudeMode() |
List<Coordinate> |
getCoordinates() |
List<AbstractObject> |
getLineStringObjectExtension() |
List<Object> |
getLineStringSimpleExtension() |
int |
hashCode() |
Boolean |
isExtrude() |
Boolean |
isTessellate() |
void |
setAltitudeMode(AltitudeMode value) |
void |
setCoordinates(List<Coordinate> coordinates) |
void |
setExtrude(Boolean value) |
void |
setGeometryObjectExtension(List<AbstractObject> geometryObjectExtension) |
void |
setGeometrySimpleExtension(List<Object> geometrySimpleExtension) |
void |
setLineStringObjectExtension(List<AbstractObject> lineStringObjectExtension) |
void |
setLineStringSimpleExtension(List<Object> lineStringSimpleExtension) |
void |
setObjectSimpleExtension(List<Object> objectSimpleExtension) |
void |
setTessellate(Boolean value) |
LineString |
withAltitudeMode(AltitudeMode altitudeMode)
fluent setter
|
LineString |
withCoordinates(List<Coordinate> coordinates)
fluent setter
|
LineString |
withExtrude(Boolean extrude)
fluent setter
|
LineString |
withGeometryObjectExtension(List<AbstractObject> geometryObjectExtension)
fluent setter
|
LineString |
withGeometrySimpleExtension(List<Object> geometrySimpleExtension)
fluent setter
|
LineString |
withId(String id)
fluent setter
|
LineString |
withLineStringObjectExtension(List<AbstractObject> lineStringObjectExtension)
fluent setter
|
LineString |
withLineStringSimpleExtension(List<Object> lineStringSimpleExtension)
fluent setter
|
LineString |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
LineString |
withTargetId(String targetId)
fluent setter
|
LineString |
withTessellate(Boolean tessellate)
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 Boolean tessellate
Boolean value. Specifies whether to allow the LineString to follow the terrain. To enable tessellation, the altitude mode must be clampToGround or clampToSeaFloor. Very large LineStrings should enable tessellation so that they follow the curvature of the earth (otherwise, they may go underground and be hidden).
Boolean value. Specifies whether to allow the LinearRing to follow the terrain.
To enable tessellation, the value for
Boolean value. Specifies whether to allow the Polygon to follow the terrain. To enable tessellation, the Polygon must have an altitude mode of clampToGround or clampToSeaFloor. Very large Polygons should enable tessellation so that they follow the curvature of the earth (otherwise, they may go underground and be hidden).
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> lineStringObjectExtension
public void setExtrude(Boolean value)
value - allowed object is
Booleanextrudepublic void setTessellate(Boolean value)
value - allowed object is
Booleantessellatepublic 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<Object> getLineStringSimpleExtension()
lineStringSimpleExtensionpublic List<AbstractObject> getLineStringObjectExtension()
lineStringObjectExtensionpublic List<Coordinate> getCoordinates()
coordinatespublic void setCoordinates(List<Coordinate> coordinates)
coordinates - coordinatespublic LineString addToCoordinates(double longitude, double latitude)
longitude - required parameterlatitude - required parameterpublic LineString addToCoordinates(double longitude, double latitude, double altitude)
longitude - required parameterlatitude - required parameteraltitude - required parameterpublic LineString addToCoordinates(String coordinates)
coordinates - required parameterpublic void setLineStringSimpleExtension(List<Object> lineStringSimpleExtension)
lineStringSimpleExtension - lineStringSimpleExtensionpublic LineString addToLineStringSimpleExtension(Object lineStringSimpleExtension)
lineStringSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setLineStringObjectExtension(List<AbstractObject> lineStringObjectExtension)
lineStringObjectExtension - lineStringObjectExtensionpublic LineString addToLineStringObjectExtension(AbstractObject lineStringObjectExtension)
lineStringObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic void setObjectSimpleExtension(List<Object> objectSimpleExtension)
setObjectSimpleExtension in class GeometryobjectSimpleExtensionpublic LineString 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 LineString 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 LineString addToGeometryObjectExtension(AbstractObject geometryObjectExtension)
GeometryaddToGeometryObjectExtension in class GeometrygeometryObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic LineString withExtrude(Boolean extrude)
extrude - required parametersetExtrude(Boolean)public LineString withTessellate(Boolean tessellate)
tessellate - required parametersetTessellate(Boolean)public LineString withAltitudeMode(AltitudeMode altitudeMode)
altitudeMode - required parameter#setAltitudeMode(Object)public LineString withCoordinates(List<Coordinate> coordinates)
coordinates - required parameter#setCoordinates(List) public LineString withLineStringSimpleExtension(List<Object> lineStringSimpleExtension)
lineStringSimpleExtension - required parameter#setLineStringSimpleExtension(Listpublic LineString withLineStringObjectExtension(List<AbstractObject> lineStringObjectExtension)
lineStringObjectExtension - required parameter#setLineStringObjectExtension(List) public LineString withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class GeometryobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic LineString withId(String id)
AbstractObjectwithId in class Geometryid - required parameterAbstractObject.setId(String)public LineString withTargetId(String targetId)
AbstractObjectwithTargetId in class GeometrytargetId - required parameterAbstractObject.setTargetId(String)public LineString withGeometrySimpleExtension(List<Object> geometrySimpleExtension)
GeometrywithGeometrySimpleExtension in class GeometrygeometrySimpleExtension - required parameter#setGeometrySimpleExtension(Listpublic LineString 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);
public LineString clone()
Copyright © 2014 Micromata GmbH. All rights reserved.