Package oracle.spatial.network
Interface MDPoint
-
- All Superinterfaces:
java.lang.Cloneable,java.io.Serializable
- All Known Subinterfaces:
Node
public interface MDPoint extends java.lang.Cloneable, java.io.SerializableThis interface defines a mutilple dimension point.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doubledistance(MDPoint pt)Returns the Cartesian distance to the specified point.doublegeodeticDistanceInMeters(MDPoint pt)Returns the geodetic distance to the specified point.intgetNoOfDims()Returns the number of dimensions.double[]getOrd()Returns the ordinates as an array.doublegetOrd(int index)Gets the specified ordinate.intgetSrid()Returns the SRID.booleaninside(MDPoint pt, double radius)Checks if the point is inside the specified range represented by the point and the radius.booleaninside(MDPoint low, MDPoint high)Checks if the point is inside the specified range represented by the low and the high points.voidsetOrd(int index, double value)Sets the specified ordinate.voidsetSrid(int srid)Sets the SRID.double[]toArray()Returns the ordinates in an array.JGeometrytoGeometry()Returns a point geometry (JGeometry).java.lang.StringtoSDOGeometry(int srid)Retunrs a String for constructing a point SDO_GEOMETRY in the database.
-
-
-
Method Detail
-
getNoOfDims
int getNoOfDims()
Returns the number of dimensions.
-
getOrd
double[] getOrd()
Returns the ordinates as an array.
-
setOrd
void setOrd(int index, double value)Sets the specified ordinate.- Parameters:
index- the specified dimension (starting from zero)value- the value to be set
-
getOrd
double getOrd(int index)
Gets the specified ordinate.- Parameters:
index- the specified dimension
-
getSrid
int getSrid()
Returns the SRID.
-
setSrid
void setSrid(int srid)
Sets the SRID.- Parameters:
srid- the SRID of the point
-
distance
double distance(MDPoint pt)
Returns the Cartesian distance to the specified point.- Parameters:
pt- the specified point
-
geodeticDistanceInMeters
double geodeticDistanceInMeters(MDPoint pt)
Returns the geodetic distance to the specified point.- Parameters:
pt- the specified point
-
toArray
double[] toArray()
Returns the ordinates in an array.
-
inside
boolean inside(MDPoint low, MDPoint high)
Checks if the point is inside the specified range represented by the low and the high points.- Parameters:
low- the low point of the rangehigh- the high point of the range
-
inside
boolean inside(MDPoint pt, double radius)
Checks if the point is inside the specified range represented by the point and the radius.- Parameters:
pt- the center point of the rangeradius- the radius of the range
-
toGeometry
JGeometry toGeometry()
Returns a point geometry (JGeometry).
-
toSDOGeometry
java.lang.String toSDOGeometry(int srid)
Retunrs a String for constructing a point SDO_GEOMETRY in the database.- Parameters:
srid- the SRID of the point geometry
-
-