|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.geometry.standard.AbstractDefaultGeometry
org.deegree.geometry.standard.primitive.DefaultPoint
public class DefaultPoint
Default implementation of Point.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.GeometricPrimitive |
|---|
GeometricPrimitive.PrimitiveType |
| Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry |
|---|
Geometry.GeometryType |
| Field Summary |
|---|
| Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
|---|
crs, id, jtsFactory, jtsGeometry, pm |
| Constructor Summary | |
|---|---|
DefaultPoint(String id,
CRS crs,
PrecisionModel pm,
double[] coordinates)
Creates a new DefaultPoint instance from the given parameters. |
|
| Method Summary | |
|---|---|
protected com.vividsolutions.jts.geom.Point |
buildJTSGeometry()
|
boolean |
equals(Geometry geometry)
Tests whether this geometry is equal to the specified geometry. |
double |
get(int dimension)
Returns the value of the specified ordinate. |
double |
get0()
Returns the value of the first ordinate. |
double |
get1()
Returns the value of the second ordinate. |
double |
get2()
Returns the value of the third ordinate. |
double[] |
getAsArray()
Returns all ordinates. |
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in. |
Envelope |
getEnvelope()
Returns the minimal bounding box of the geometry. |
Geometry.GeometryType |
getGeometryType()
Must always return Geometry.GeometryType#PRIMITIVE_GEOMETRY. |
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Point. |
String |
toString()
|
| Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
|---|
contains, createFromJTS, crosses, getAsDefaultGeometry, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getGMLProperties, getId, getIntersection, getJTSGeometry, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.geometry.Geometry |
|---|
contains, crosses, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
| Methods inherited from interface org.deegree.gml.GMLObject |
|---|
getGMLProperties |
| Constructor Detail |
|---|
public DefaultPoint(String id,
CRS crs,
PrecisionModel pm,
double[] coordinates)
DefaultPoint instance from the given parameters.
id - identifier, may be nullcrs - coordinate reference system, may be nullpm - precision model, may be nullcoordinates - coordinates of the point| Method Detail |
|---|
public Geometry.GeometryType getGeometryType()
GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRY.
getGeometryType in interface GeometrygetGeometryType in interface GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRYpublic GeometricPrimitive.PrimitiveType getPrimitiveType()
PointGeometricPrimitive.PrimitiveType.Point.
getPrimitiveType in interface GeometricPrimitivegetPrimitiveType in interface PointGeometricPrimitive.PrimitiveType.Pointpublic double get(int dimension)
Point
get in interface Pointdimension - ordinate to be returned (first dimension=0)
Double.NAN if dimension is greater
than the number of actual dimensionspublic double[] getAsArray()
Point
getAsArray in interface Pointpublic double get0()
Point
get0 in interface Pointpublic double get1()
Point
get1 in interface PointDouble.NAN if the point only has one dimensionpublic double get2()
Point
get2 in interface PointDouble.NAN if the point only has one or two dimensionspublic boolean equals(Geometry geometry)
Geometry
equals in interface Geometryequals in class AbstractDefaultGeometrygeometry - the Geometry to test this Geometry against
Geometry is equal to geometrypublic int getCoordinateDimension()
Geometry
getCoordinateDimension in interface Geometrypublic Envelope getEnvelope()
Geometry
getEnvelope in interface GeometrygetEnvelope in class AbstractDefaultGeometrypublic String toString()
toString in class AbstractDefaultGeometryprotected com.vividsolutions.jts.geom.Point buildJTSGeometry()
buildJTSGeometry in class AbstractDefaultGeometry
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||