TestSpatial
Spatial datatype and index tests.
| Methods |
| static Geometry |
geomFromText(String text, int srid)
Convert the text to a geometry object.
|
| static Geometry |
geomFromText(String text, int srid) throws SQLException
Convert the text to a geometry object.
Parameters:
text - the geometry as a Well Known Text
srid - the projection id
Returns:
Geometry object
|
| static String |
getObjectString(Object object)
Get the toString value of the object.
|
| static String |
getObjectString(Object object)
Get the toString value of the object.
Parameters:
object - the object
Returns:
the string representation
|
| static Geometry |
getRandomGeometry(Random geometryRand, double minX, double maxX, double minY, double maxY, double maxLength)
Generate a random line string under the given bounding box.
|
| static Geometry |
getRandomGeometry(Random geometryRand, double minX, double maxX, double minY, double maxY, double maxLength)
Generate a random line string under the given bounding box.
Parameters:
geometryRand - the random generator
minX - Bounding box min x
maxX - Bounding box max x
minY - Bounding box min y
maxY - Bounding box max y
maxLength - LineString maximum length
Returns:
A segment within this bounding box
|
| static ResultSet |
getRandomGeometryTable(long seed, long rowCount, double minX, double maxX, double minY, double maxY, double maxLength)
Generate a result set with random geometry data.
|
| static ResultSet |
getRandomGeometryTable(long seed, long rowCount, double minX, double maxX, double minY, double maxY, double maxLength)
Generate a result set with random geometry data.
Used as an ALIAS function.
Parameters:
seed - the random seed
rowCount - the number of rows
minX - the smallest x
maxX - the largest x
minY - the smallest y
maxY - the largest y
maxLength - the maximum length
Returns:
a result set
|
| static void |
main(String... a)
Run just this test.
|
| static void |
main(String... a) throws Exception
Run just this test.
Parameters:
a - ignored
|
| static ResultSet |
pointTable(double x, double y)
This method is called via reflection from the database.
|
| static ResultSet |
pointTable(double x, double y)
This method is called via reflection from the database.
Parameters:
x - the x position of the point
y - the y position of the point
Returns:
a result set with this point
|
| void |
test()
|
| void |
test() throws SQLException
|
|