Line

Represents a line on the earth's surface. You can construct the Line directly with double[] coordinates.

NOTES:

  1. All latitude/longitude values must be in decimal degrees.

  2. For more advanced GeoSpatial indexing and query operations see the spatial-extras module

Constructors

Link copied to clipboard
constructor(lats: DoubleArray, lons: DoubleArray)

Properties

Link copied to clipboard

maximum latitude of this line's bounding box

Link copied to clipboard

maximum longitude of this line's bounding box

Link copied to clipboard

minimum latitude of this line's bounding box

Link copied to clipboard

minimum longitude of this line's bounding box

Functions

Link copied to clipboard
open operator override fun equals(o: Any?): Boolean
Link copied to clipboard
fun getLat(vertex: Int): Double

Returns latitude value at given index

Link copied to clipboard

Returns a copy of the internal latitude array

Link copied to clipboard
fun getLon(vertex: Int): Double

Returns longitude value at given index

Link copied to clipboard

Returns a copy of the internal longitude array

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun numPoints(): Int

returns the number of vertex points

Link copied to clipboard

prints lines as geojson

Link copied to clipboard
open override fun toString(): String