public class TestSpatial extends TestBase
| Modifier and Type | Class and Description |
|---|---|
static class |
TestSpatial.TableEnvelope
An aggregate function that calculates the envelope.
|
TestBase.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.
|
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.
|
assertContains, assertEqualDatabases, assertEqualReaders, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualStreams, assertFalse, assertFalse, assertKnownException, assertKnownException, assertNull, assertResult, assertResultRowCount, assertResultSetMeta, assertResultSetOrdered, assertSingleValue, assertSmaller, assertStartsWith, assertThrows, assertThrows, assertThrows, assertThrows, assertTrue, assertTrue, buildChild, crash, createCaller, createClassProxy, createFailingStream, deleteDb, deleteDb, eatMemory, execute, execute, fail, fail, freeMemory, getBaseDir, getClassPath, getConnection, getConnection, getFilePassword, getMemoryUsed, getMemoryUsedBytes, getPassword, getPassword, getSize, getTestDir, getTestName, getURL, getUser, init, init, logError, logErrorMessage, println, printTime, printTimeMemory, readString, runTest, startServerIfRequired, throwException, trace, trace, traceMemorypublic static void main(java.lang.String... a)
throws java.lang.Exception
a - ignoredjava.lang.Exceptionpublic 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