public class TestSpatial extends TestDb
| Modifier and Type | Class and Description |
|---|---|
static class |
TestSpatial.TableEnvelope
An aggregate function that calculates the envelope.
|
TestDb.ChildBASE_TEST_DIR, config, start, uniqueId| Constructor and Description |
|---|
TestSpatial() |
| Modifier and Type | Method and Description |
|---|---|
static org.locationtech.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.
|
boolean |
isEnabled() |
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.
|
buildChild, deleteDb, deleteDb, getConnection, getConnection, getURL, startServerIfRequiredassertContains, assertEqualDatabases, assertEqualReaders, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualStreams, assertFalse, assertFalse, assertKnownException, assertKnownException, assertNotNull, assertNotNull, assertNull, assertResult, assertResultRowCount, assertResultSetMeta, assertResultSetOrdered, assertSame, assertSingleValue, assertSmaller, assertStartsWith, assertThrows, assertThrows, assertThrows, assertThrows, assertTrue, assertTrue, crash, createCaller, createClassProxy, createFailingStream, eatMemory, execute, execute, fail, fail, freeMemory, getBaseDir, getClassPath, getFilePassword, getJVM, getMemoryUsed, getMemoryUsedBytes, getPassword, getPassword, getSize, getTestDir, getTestName, getUser, init, init, logError, logErrorMessage, println, printTime, printTimeMemory, readString, runTest, throwException, trace, trace, traceMemorypublic static void main(java.lang.String... a)
throws java.lang.Exception
a - ignoredjava.lang.Exceptionpublic boolean isEnabled()
public void test()
throws java.sql.SQLException
TestBasepublic 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 lengthpublic static org.locationtech.jts.geom.Geometry geomFromText(java.lang.String text,
int srid)
throws java.sql.SQLException
text - the geometry as a Well Known Textsrid - the projection idjava.sql.SQLExceptionpublic static java.lang.String getObjectString(java.lang.Object object)
object - the objectpublic static java.sql.ResultSet pointTable(double x,
double y)
x - the x position of the pointy - the y position of the point