public class LinearRing extends Geometry implements Cloneable
Defines a closed line string, typically the outer boundary of a Polygon. Optionally,
a LinearRing can also be used as the inner boundary of a Polygon to create holes
in the Polygon. A Polygon can contain multiple
Note: In Google Earth, a Polygon with an
<LinearRing id="ID">
<!-- specific to LinearRing -->
<extrude>0</extrude> <!-- boolean -->
<tessellate>0</tessellate> <!-- boolean -->
<altitudeMode>clampToGround</altitudeMode>
<!-- kml:altitudeModeEnum: clampToGround, relativeToGround, or absolute -->
<!-- or, substitute gx:altitudeMode: clampToSeaFloor, relativeToSeaFloor -->
<coordinates>...</coordinates> <!-- lon,lat[,alt] tuples -->
</LinearRing>
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> |
linearRingObjectExtension
|
protected List<Object> |
linearRingSimpleExtension |
protected Boolean |
tessellate
|
geometryObjectExtension, geometrySimpleExtensionid, objectSimpleExtension, targetId| Constructor and Description |
|---|
LinearRing() |
| Modifier and Type | Method and Description |
|---|---|
LinearRing |
addToCoordinates(double longitude,
double latitude)
add a value to the coordinates property collection
|
LinearRing |
addToCoordinates(double longitude,
double latitude,
double altitude)
add a value to the coordinates property collection
|
LinearRing |
addToCoordinates(String coordinates)
add a value to the coordinates property collection
|
LinearRing |
addToGeometryObjectExtension(AbstractObject geometryObjectExtension)
add a value to the geometryObjectExtension property collection
|
LinearRing |
addToGeometrySimpleExtension(Object geometrySimpleExtension)
add a value to the geometrySimpleExtension property collection
|
LinearRing |
addToLinearRingObjectExtension(AbstractObject linearRingObjectExtension)
add a value to the linearRingObjectExtension property collection
|
LinearRing |
addToLinearRingSimpleExtension(Object linearRingSimpleExtension)
add a value to the linearRingSimpleExtension property collection
|
LinearRing |
addToObjectSimpleExtension(Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection
|
LinearRing |
clone() |
List<Coordinate> |
createAndSetCoordinates()
|
boolean |
equals(Object obj) |
AltitudeMode |
getAltitudeMode() |
List<Coordinate> |
getCoordinates() |
List<AbstractObject> |
getLinearRingObjectExtension() |
List<Object> |
getLinearRingSimpleExtension() |
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 |
setLinearRingObjectExtension(List<AbstractObject> linearRingObjectExtension) |
void |
setLinearRingSimpleExtension(List<Object> linearRingSimpleExtension) |
void |
setObjectSimpleExtension(List<Object> objectSimpleExtension) |
void |
setTessellate(Boolean value) |
LinearRing |
withAltitudeMode(AltitudeMode altitudeMode)
fluent setter
|
LinearRing |
withCoordinates(List<Coordinate> coordinates)
fluent setter
|
LinearRing |
withExtrude(Boolean extrude)
fluent setter
|
LinearRing |
withGeometryObjectExtension(List<AbstractObject> geometryObjectExtension)
fluent setter
|
LinearRing |
withGeometrySimpleExtension(List<Object> geometrySimpleExtension)
fluent setter
|
LinearRing |
withId(String id)
fluent setter
|
LinearRing |
withLinearRingObjectExtension(List<AbstractObject> linearRingObjectExtension)
fluent setter
|
LinearRing |
withLinearRingSimpleExtension(List<Object> linearRingSimpleExtension)
fluent setter
|
LinearRing |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
LinearRing |
withTargetId(String targetId)
fluent setter
|
LinearRing |
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> linearRingObjectExtension
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> getLinearRingSimpleExtension()
linearRingSimpleExtensionpublic List<AbstractObject> getLinearRingObjectExtension()
linearRingObjectExtensionpublic List<Coordinate> getCoordinates()
coordinatespublic void setCoordinates(List<Coordinate> coordinates)
coordinates - coordinatespublic LinearRing addToCoordinates(double longitude, double latitude)
longitude - required parameterlatitude - required parameterpublic LinearRing addToCoordinates(double longitude, double latitude, double altitude)
longitude - required parameterlatitude - required parameteraltitude - required parameterpublic LinearRing addToCoordinates(String coordinates)
coordinates - required parameterpublic void setLinearRingSimpleExtension(List<Object> linearRingSimpleExtension)
linearRingSimpleExtension - linearRingSimpleExtensionpublic LinearRing addToLinearRingSimpleExtension(Object linearRingSimpleExtension)
linearRingSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setLinearRingObjectExtension(List<AbstractObject> linearRingObjectExtension)
linearRingObjectExtension - linearRingObjectExtensionpublic LinearRing addToLinearRingObjectExtension(AbstractObject linearRingObjectExtension)
linearRingObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic void setObjectSimpleExtension(List<Object> objectSimpleExtension)
setObjectSimpleExtension in class GeometryobjectSimpleExtensionpublic LinearRing 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 LinearRing 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 LinearRing addToGeometryObjectExtension(AbstractObject geometryObjectExtension)
GeometryaddToGeometryObjectExtension in class GeometrygeometryObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic LinearRing withExtrude(Boolean extrude)
extrude - required parametersetExtrude(Boolean)public LinearRing withTessellate(Boolean tessellate)
tessellate - required parametersetTessellate(Boolean)public LinearRing withAltitudeMode(AltitudeMode altitudeMode)
altitudeMode - required parameter#setAltitudeMode(Object)public LinearRing withCoordinates(List<Coordinate> coordinates)
coordinates - required parameter#setCoordinates(List) public LinearRing withLinearRingSimpleExtension(List<Object> linearRingSimpleExtension)
linearRingSimpleExtension - required parameter#setLinearRingSimpleExtension(Listpublic LinearRing withLinearRingObjectExtension(List<AbstractObject> linearRingObjectExtension)
linearRingObjectExtension - required parameter#setLinearRingObjectExtension(List) public LinearRing withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class GeometryobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic LinearRing withId(String id)
AbstractObjectwithId in class Geometryid - required parameterAbstractObject.setId(String)public LinearRing withTargetId(String targetId)
AbstractObjectwithTargetId in class GeometrytargetId - required parameterAbstractObject.setTargetId(String)public LinearRing withGeometrySimpleExtension(List<Object> geometrySimpleExtension)
GeometrywithGeometrySimpleExtension in class GeometrygeometrySimpleExtension - required parameter#setGeometrySimpleExtension(Listpublic LinearRing 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 LinearRing clone()
Copyright © 2014 Micromata GmbH. All rights reserved.