RectangleGeographicArea

Rectangle geographic area. This interface represents a geographical area on the surface on WGS 84 Ellipsoid.

Constructors

Link copied to clipboard
constructor(minLat: Double, maxLat: Double, minLon: Double, maxLon: Double)

Constructs a RectangleGeographicArea object with minimum and maximum latitudes and longitudes.

constructor(topLeft: Coordinates, bottomRight: Coordinates)

Constructs a RectangleGeographicArea object from top-left and bottom-right coordinates.

constructor(coords: Coordinates, horizRadius: Double, vertRadius: Double)

Constructs a RectangleGeographicArea object from center coordinates and horizontal/vertical radii.

constructor(address: Long)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Coordinates for the bottom-right point.

Link copied to clipboard

Bounding box. This is the smallest rectangle that can be drawn around the area such that it surrounds this geographic area completely. If the area is bigger than what is allowed in the WGS 84 coordinate system, the rectangle is truncated to valid WGS 84 coordinate values. The RectangleGeographicArea is always aligned with parallels and meridians.

Link copied to clipboard

Center of the geographic area.

Link copied to clipboard

Coordinates for the top-left point.

Link copied to clipboard

Type of the geographic area.

Functions

Link copied to clipboard

Check if contains the given rectangle geographic area

Link copied to clipboard
open external override fun containsCoordinates(value: Coordinates): Boolean

Check if the provided point is contained by the geographic area.

Link copied to clipboard
open external override fun convert(area: GeographicArea): Int

Convert to area of the given type

Link copied to clipboard
open external override fun equalsTo(value: GeographicArea): Boolean

Check if two geographic areas are equal.

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard

Check if intersects with the given rectangle geographic area

Link copied to clipboard
open external override fun isDefault(): Boolean

Returns true if this is a default geographic area and false otherwise.

Link copied to clipboard
open external override fun isEmpty(): Boolean

Check empty area

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard

Create a new area as the result of intersection with the given rectangle geographic area

Link copied to clipboard

Create a new area as the result of union with the given rectangle geographic area

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
open external override fun reset()

Resets the object to default

Link copied to clipboard
external fun set(coords: Coordinates, horizontalRadius: Double, verticalRadius: Double)
external fun set(minLat: Double, maxLat: Double, minLon: Double, maxLon: Double)

Set the rectangle given by individual latitudes and longitudes

Link copied to clipboard

Set the current object as the intersection with the given rectangle geographic area

Link copied to clipboard
external fun setUnion(value: RectangleGeographicArea)

Set the current object as the union with the given rectangle geographic area