|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MDPoint
This interface defines a mutilple dimension point.
| Method Summary | |
|---|---|
double |
distance(MDPoint pt)Returns the Cartesian distance to the specified point. |
double |
geodeticDistanceInMeters(MDPoint pt)Returns the geodetic distance to the specified point. |
int |
getNoOfDims()Returns the number of dimensions. |
double[] |
getOrd()Returns the ordinates as an array. |
double |
getOrd(int index)Gets the specified ordinate. |
int |
getSrid()Returns the SRID. |
boolean |
inside(MDPoint pt, double radius)Checks if the point is inside the specified range represented by the point and the radius. |
boolean |
inside(MDPoint low, MDPoint high)Checks if the point is inside the specified range represented by the low and the high points. |
void |
setOrd(int index, double value)Sets the specified ordinate. |
void |
setSrid(int srid)Sets the SRID. |
double[] |
toArray()Returns the ordinates in an array. |
JGeometry |
toGeometry()Returns a point geometry (JGeometry). |
java.lang.String |
toSDOGeometry(int srid)Retunrs a String for constructing a point SDO_GEOMETRY in the database. |
| Method Detail |
|---|
int getNoOfDims()
double[] getOrd()
void setOrd(int index,
double value)
index - the specified dimension (starting from zero)value - the value to be setdouble getOrd(int index)
index - the specified dimensionint getSrid()
void setSrid(int srid)
srid - the SRID of the pointdouble distance(MDPoint pt)
pt - the specified pointdouble geodeticDistanceInMeters(MDPoint pt)
pt - the specified pointdouble[] toArray()
boolean inside(MDPoint low,
MDPoint high)
low - the low point of the rangehigh - the high point of the range
boolean inside(MDPoint pt,
double radius)
pt - the center point of the rangeradius - the radius of the rangeJGeometry toGeometry()
java.lang.String toSDOGeometry(int srid)
srid - the SRID of the point geometry
|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||