GeoTestUtil

static methods for testing geo

Functions

Link copied to clipboard
fun containsSlowly(polygon: Polygon, latitude: Double, longitude: Double): Boolean

Simple slow point in polygon check (for testing)

Link copied to clipboard
fun createRegularPolygon(centerLat: Double, centerLon: Double, radiusMeters: Double, gons: Int): Polygon

Makes an n-gon, centered at the provided lat/lon, and each vertex approximately distanceMeters away from the center.

Link copied to clipboard

returns next pseudorandom box: can cross the 180th meridian

Link copied to clipboard

Returns next box for testing near a Polygon

Link copied to clipboard

returns next pseudorandom box: does not cross the 180th meridian

Link copied to clipboard
Link copied to clipboard

returns next pseudorandom latitude (anywhere)

Link copied to clipboard
fun nextLine(): Line
Link copied to clipboard

returns next pseudorandom longitude (anywhere)

Link copied to clipboard
Link copied to clipboard

Returns next point (lat/lon) for testing near a Polygon

Returns next point (lat/lon) for testing near a Box. It may cross the dateline

Link copied to clipboard

returns next pseudorandom polygon

Link copied to clipboard
fun readShape(name: String): String

reads a shape from file

Link copied to clipboard
fun toSVG(vararg objects: Any): String

Returns svg of polygon for debugging.