|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.model.spatialschema.GeometryImpl org.deegree.model.spatialschema.PrimitiveImpl org.deegree.model.spatialschema.PointImpl
public class PointImpl
default implementation of the Point interface.
------------------------------------------------------------
Field Summary |
---|
Fields inherited from class org.deegree.model.spatialschema.GeometryImpl |
---|
boundary, centroid, convexHull, crs, empty, envelope, mute, valid |
Fields inherited from interface org.deegree.model.spatialschema.Geometry |
---|
BUFFER_CAP_BUTT, BUFFER_CAP_ROUND, BUFFER_CAP_SQUARE |
Constructor Summary | |
---|---|
protected |
PointImpl(CoordinateSystem crs)
constructor. initializes a point to the coordinate 0/0 |
protected |
PointImpl(double x,
double y,
CoordinateSystem crs)
constructor for initializing a point within a two-dimensional coordinate system |
protected |
PointImpl(double x,
double y,
double z,
CoordinateSystem crs)
constructor for initializing a point within a three-dimensional coordinate system |
protected |
PointImpl(Point otherPoint)
constructor |
protected |
PointImpl(Position position,
CoordinateSystem crs)
constructor |
Method Summary | |
---|---|
protected void |
calculateParam()
recalculates internal parameters |
java.lang.Object |
clone()
|
boolean |
contains(Geometry gmo)
The Boolean valued operation "contains" shall return TRUE if this Geometry contains another Geometry. |
boolean |
equals(java.lang.Object other)
checks if this point is completely equal to the submitted geometry |
double[] |
getAsArray()
|
int |
getCoordinateDimension()
The operation "coordinateDimension" shall return the dimension of the coordinates that define this Geometry, which must be the same as the coordinate dimension of the coordinate reference system for this Geometry. |
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension. |
Position |
getPosition()
|
double |
getX()
|
double |
getY()
|
double |
getZ()
|
boolean |
intersects(Geometry gmo)
The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. |
java.lang.String |
toString()
|
void |
translate(double[] d)
translate the point by the submitted values. the dz - value will be ignored. |
Methods inherited from class org.deegree.model.spatialschema.GeometryImpl |
---|
contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isEmpty, isValid, isWithinDistance, setCoordinateSystem, setEmpty, setTolerance, setValid, union |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deegree.model.spatialschema.Geometry |
---|
contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isEmpty, isWithinDistance, setTolerance, union |
Constructor Detail |
---|
protected PointImpl(CoordinateSystem crs)
crs
- spatial reference system of the pointprotected PointImpl(double x, double y, CoordinateSystem crs)
x
- x-value of the pointy
- y-value of the pointcrs
- spatial reference system of the pointprotected PointImpl(double x, double y, double z, CoordinateSystem crs)
x
- x-value of the pointy
- y-value of the pointz
- z-value of the pointcrs
- spatial reference system of the pointprotected PointImpl(Point otherPoint)
otherPoint
- existing GM_Pointprotected PointImpl(Position position, CoordinateSystem crs)
position
- existing positioncrs
- spatial reference system of the pointMethod Detail |
---|
public boolean equals(java.lang.Object other)
equals
in class GeometryImpl
other
- the Geometry to test for equality
public int getDimension()
Geometry
getDimension
in interface Geometry
public int getCoordinateDimension()
Geometry
getCoordinateDimension
in interface Geometry
public java.lang.Object clone()
clone
in class GeometryImpl
public double getX()
getX
in interface Point
public double getY()
getY
in interface Point
public double getZ()
getZ
in interface Point
public double[] getAsArray()
getAsArray
in interface Point
public void translate(double[] d)
dz
- value will be ignored.
translate
in interface Geometry
translate
in class GeometryImpl
d
- vector to translate the geometry withpublic Position getPosition()
getPosition
in interface Point
public boolean intersects(Geometry gmo)
dummy implementation
intersects
in interface Geometry
intersects
in class GeometryImpl
gmo
- the Geometry to intersect with
public boolean contains(Geometry gmo)
contains
in interface Geometry
contains
in class GeometryImpl
gmo
- the Geometry to test (whether is is contained)
protected void calculateParam()
calculateParam
in class GeometryImpl
public java.lang.String toString()
toString
in class GeometryImpl
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org