|
Spatial DataBlade JAVA API v8.21 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.spatial.geom.CoordPoint
com.ibm.spatial.geom.CoordPoint.Double
com.ibm.spatial.geom.CoordPoint.DoubleZM
public static class CoordPoint.DoubleZM
The CoordPoint.DoubleZM class defines a CoordPoint specified in double precision coordinates. Besides x and y, the point may have a z coordinate and a measure.
CoordPoint.DoubleZM objects which don't have a z coordinate or a
measure will have the corresponding fields initialized to
java.lang.Double.NaN. This is an implementation detail
which may change in the future. The API users should use
hasZ and hasM members in order
to determine whether a CoordPoint.DoubleZM has a z
coordinate or measure.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ibm.spatial.geom.CoordPoint |
|---|
CoordPoint.Double, CoordPoint.DoubleZM, CoordPoint.Long, CoordPoint.LongZM |
| Field Summary | |
|---|---|
double |
m
The m coordinate of this CoordPoint. |
double |
z
The z coordinate of this CoordPoint. |
| Fields inherited from class com.ibm.spatial.geom.CoordPoint.Double |
|---|
x, y |
| Constructor Summary | |
|---|---|
CoordPoint.DoubleZM()
Constructs a new CoordPoint. |
|
CoordPoint.DoubleZM(CoordPoint point)
Constructs and initializes a CoordPoint from the coordinates of the specified CoordPoint. |
|
CoordPoint.DoubleZM(double x,
double y)
Constructs and initializes a CoordPoint from the specified coordinates. |
|
CoordPoint.DoubleZM(double x,
double y,
double z,
double m)
Constructs and initializes a CoordPoint from the specified coordinates. |
|
CoordPoint.DoubleZM(Point point)
Constructs and initializes a CoordPoint from the coordinates of the specified OGC Point. |
|
| Method Summary | |
|---|---|
double |
getM()
Returns the measure associated to this CoordPoint. |
double |
getZ()
Returns the Z coordinate of this CoordPoint. |
boolean |
hasM()
Determines whether or not this CoordPoint has a measure. |
boolean |
hasZ()
Determines whether or not this CoordPoint has a Z coordinate. |
boolean |
isEmpty()
Tests whether this CoordPoint is empty. |
void |
setCoordAt(int n,
double value)
Sets the coordinate specified by index n with the value specified by value, where n=0 corresponds to x, n=1 to y, n=2 to z, and n=3 to m. |
void |
setEmpty()
Sets this CoordPoint to be empty. |
void |
setM(double m)
Sets the measure of this CoordPoint to the specified value. |
void |
setZ(double z)
Sets the coordinates of this CoordPoint to the specified values. |
| Methods inherited from class com.ibm.spatial.geom.CoordPoint.Double |
|---|
getX, getY, setCoord |
| Methods inherited from class com.ibm.spatial.geom.CoordPoint |
|---|
clone, equals, equals, getCoordAt, hashCode, setCoord, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double z
public double m
| Constructor Detail |
|---|
public CoordPoint.DoubleZM()
public CoordPoint.DoubleZM(double x,
double y)
x - the x coordinate value of the newly constructed
CoordPointy - the y coordinate value of the newly constructed
CoordPoint
public CoordPoint.DoubleZM(double x,
double y,
double z,
double m)
x - the x coordinate value of the newly constructed
CoordPointy - the y coordinate value of the newly constructed
CoordPointz - the z coordinate value of the newly constructed
CoordPoint or java.lang.Double.NaNm - the m value of the newly constructed
CoordPoint or java.lang.Double.NaNpublic CoordPoint.DoubleZM(CoordPoint point)
point - the CoordPoint to be used for the newly constructed
CoordPoint initializationpublic CoordPoint.DoubleZM(Point point)
point - the OGC Point to be used for the newly constructed
CoordPoint initialization| Method Detail |
|---|
public double getZ()
getZ in class CoordPoint.Doublepublic double getM()
getM in class CoordPoint.Double
public void setCoordAt(int n,
double value)
throws java.lang.IndexOutOfBoundsException
setCoordAt in class CoordPoint.Doublen - the measure value
java.lang.IndexOutOfBoundsException - id n < 0 or n > 3public void setZ(double z)
setZ in class CoordPointz - the z coordinate valuepublic void setM(double m)
setM in class CoordPointm - the measure valuepublic void setEmpty()
setEmpty in class CoordPoint.Doublepublic boolean isEmpty()
isEmpty in class CoordPoint.Doublepublic boolean hasZ()
hasZ in class CoordPointpublic boolean hasM()
hasM in class CoordPoint
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||