|
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.Long
com.ibm.spatial.geom.CoordPoint.LongZM
public static class CoordPoint.LongZM
The LongZM class defines a CoordPoint specified in integer coordinates. Besides x and y, the point may have both a z coordinate and a measure.
CoordPoint.LongZM objects which don't have a z coordinate or a
measure will have the corresponding fields initialized to
java.lang.Long.MIN_VALUE. 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.LongZM 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 | |
|---|---|
long |
m
The m coordinate of this CoordPoint. |
long |
z
The z coordinate of this CoordPoint. |
| Fields inherited from class com.ibm.spatial.geom.CoordPoint.Long |
|---|
x, y |
| Constructor Summary | |
|---|---|
CoordPoint.LongZM()
Constructs a new CoordPoint. |
|
CoordPoint.LongZM(CoordPoint point)
Constructs and initializes a CoordPoint from the coordinates of the specified CoordPoint. |
|
CoordPoint.LongZM(long x,
long y)
Constructs and initializes a CoordPoint from the specified coordinates. |
|
CoordPoint.LongZM(long x,
long y,
long z,
long m)
Constructs and initializes a CoordPoint from the specified coordinates. |
|
CoordPoint.LongZM(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. |
java.lang.String |
toString()
Returns the String representation of this CoordPoint. |
| Methods inherited from class com.ibm.spatial.geom.CoordPoint.Long |
|---|
getX, getY, setCoord |
| Methods inherited from class com.ibm.spatial.geom.CoordPoint |
|---|
clone, equals, equals, getCoordAt, hashCode, setCoord |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public long z
public long m
| Constructor Detail |
|---|
public CoordPoint.LongZM()
public CoordPoint.LongZM(long x,
long y)
x - the x coordinate value of the newly constructed
CoordPointy - the y coordinate value of the newly constructed
CoordPoint
public CoordPoint.LongZM(long x,
long y,
long z,
long 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.Long.MIN_VALUEm - the m value of the newly constructed
CoordPoint or java.lang.Long.MIN_VALUEpublic CoordPoint.LongZM(CoordPoint point)
point - the CoordPoint to be used for the newly constructed
CoordPoint initializationpublic CoordPoint.LongZM(Point point)
point - the OGC Point to be used for the newly constructed
CoordPoint initialization| Method Detail |
|---|
public double getZ()
getZ in class CoordPoint.Longpublic double getM()
getM in class CoordPoint.Long
public void setCoordAt(int n,
double value)
throws java.lang.IndexOutOfBoundsException
setCoordAt in class CoordPoint.Longn - the measure value
java.lang.IndexOutOfBoundsException - id n < 0 or n > 3public void setZ(double z)
setZ in class CoordPointx - the x coordinate valuey - the y coordinate valuez - the z coordinate value - this value is ignoredpublic void setM(double m)
setM in class CoordPointm - the measure value - this argument is ignoredpublic void setEmpty()
setEmpty in class CoordPoint.Longpublic boolean isEmpty()
isEmpty in class CoordPoint.Longpublic boolean hasZ()
hasZ in class CoordPointpublic boolean hasM()
hasM in class CoordPointpublic java.lang.String toString()
toString in class CoordPoint.Long
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||