BaseXYPointTestCase

Abstract class to do basic tests for a xy spatial impl (high level fields and queries)

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
open fun testAllXEqual()
Link copied to clipboard
open fun testAllYEqual()
Link copied to clipboard
open fun testBoxBasics()

Add a single point and search for it in a box

Link copied to clipboard
Link copied to clipboard
open fun testBoxNull()

null field name not allowed

Link copied to clipboard

test we can search for a point

Link copied to clipboard

distance query should not accept invalid x/y as origin

Link copied to clipboard
open fun testDistanceInf()

Inf distance queries are not allowed

Link copied to clipboard
open fun testDistanceNaN()

NaN distance queries are not allowed

Link copied to clipboard

negative distance queries are not allowed

Link copied to clipboard
open fun testDistanceNull()

null field name not allowed

Link copied to clipboard
open fun testEquals()
Link copied to clipboard

Valid values that should not cause exception

Link copied to clipboard

Inf: illegal

Link copied to clipboard

NaN: illegal

Link copied to clipboard
Link copied to clipboard

test we can search for a multi-polygon

Link copied to clipboard
open fun testMultiValued()
Link copied to clipboard

test we can search for a polygon

Link copied to clipboard
open fun testPolygonHole()

test we can search for a polygon with a hole (but still includes the doc)

Link copied to clipboard

test we can search for a polygon with a hole (that excludes the doc)

Link copied to clipboard

null field name not allowed

Link copied to clipboard
open fun testRandomBig()
Link copied to clipboard

Run a few iterations with just 10 docs, hopefully easy to debug

Link copied to clipboard

Runs with thousands of docs

Link copied to clipboard
open fun testRandomMedium()
Link copied to clipboard
open fun testRandomTiny()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Explicitly large

Link copied to clipboard
Link copied to clipboard
open fun testSmallSetPoly()
Link copied to clipboard
Link copied to clipboard
open fun testSmallSetRect()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard