|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.test.TestBase
org.h2.test.db.TestSpatial
public class TestSpatial
Spatial datatype and index tests.
Nested Class Summary | |
---|---|
static class |
TestSpatial.TableEnvelope
An aggregate function that calculates the envelope. |
Field Summary |
---|
Fields inherited from class org.h2.test.TestBase |
---|
BASE_TEST_DIR, config, start, TEMP_DIR, uniqueId |
Constructor Summary | |
---|---|
TestSpatial()
|
Method Summary | |
---|---|
static com.vividsolutions.jts.geom.Geometry |
geomFromText(java.lang.String text,
int srid)
Convert the text to a geometry object. |
static java.lang.String |
getObjectString(java.lang.Object object)
Get the toString value of the object. |
static java.sql.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 void |
main(java.lang.String... a)
Run just this test. |
static java.sql.ResultSet |
pointTable(double x,
double y)
This method is called via reflection from the database. |
void |
test()
This method will be called by the test framework. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestSpatial()
Method Detail |
---|
public static void main(java.lang.String... a) throws java.lang.Exception
a
- ignored
java.lang.Exception
public void test() throws java.sql.SQLException
TestBase
test
in class TestBase
java.sql.SQLException
public static java.sql.ResultSet getRandomGeometryTable(long seed, long rowCount, double minX, double maxX, double minY, double maxY, double maxLength)
seed
- the random seedrowCount
- the number of rowsminX
- the smallest xmaxX
- the largest xminY
- the smallest ymaxY
- the largest ymaxLength
- the maximum length
public static com.vividsolutions.jts.geom.Geometry geomFromText(java.lang.String text, int srid) throws java.sql.SQLException
text
- the geometry as a Well Known Textsrid
- the projection id
java.sql.SQLException
public static java.lang.String getObjectString(java.lang.Object object)
object
- the object
public static java.sql.ResultSet pointTable(double x, double y)
x
- the x position of the pointy
- the y position of the point
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |