|
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.Object org.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 pointMethod Detail |
---|
public Geometry.GeometryType getGeometryType()
GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
.
getGeometryType
in interface Geometry
getGeometryType
in interface GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
public GeometricPrimitive.PrimitiveType getPrimitiveType()
Point
GeometricPrimitive.PrimitiveType.Point
.
getPrimitiveType
in interface GeometricPrimitive
getPrimitiveType
in interface Point
GeometricPrimitive.PrimitiveType.Point
public double get(int dimension)
Point
get
in interface Point
dimension
- 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 Point
public double get0()
Point
get0
in interface Point
public double get1()
Point
get1
in interface Point
Double.NAN
if the point only has one dimensionpublic double get2()
Point
get2
in interface Point
Double.NAN
if the point only has one or two dimensionspublic boolean equals(Geometry geometry)
Geometry
equals
in interface Geometry
equals
in class AbstractDefaultGeometry
geometry
- the Geometry
to test this Geometry
against
Geometry
is equal to geometry
public int getCoordinateDimension()
Geometry
getCoordinateDimension
in interface Geometry
public Envelope getEnvelope()
Geometry
getEnvelope
in interface Geometry
getEnvelope
in class AbstractDefaultGeometry
public String toString()
toString
in class AbstractDefaultGeometry
protected 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 |