RegionEntity

data class RegionEntity(val id: Long = 0, val regionsID: Long, val polygonID: Long, val active: Boolean, var boundingBoxSouthwest: GeoLocationEntity, var boundingBoxNortheast: GeoLocationEntity, val zIndex: Float)

The class representation of the entity 'Region' from the database. This entity stores information about a geographic region defined by a polygon.

Constructors

Link copied to clipboard
constructor(id: Long = 0, regionsID: Long, polygonID: Long, active: Boolean, boundingBoxSouthwest: GeoLocationEntity, boundingBoxNortheast: GeoLocationEntity, zIndex: Float)

Properties

Link copied to clipboard

True if the region is currently displayed on the map, false otherwise (defaults to true).

Link copied to clipboard

the Geolocation of the northeast BoundingBox

Link copied to clipboard

the Geolocation of the southwest BoundingBox

Link copied to clipboard
val id: Long = 0

(Long, auto-generated) The unique identifier for the image within the database.

Link copied to clipboard

(Long) The foreign key referencing the PolygonEntity that defines the outer boundary of this region.

Link copied to clipboard

the id used to identify in a list of regions in the Cartographic Boundary Entity

Link copied to clipboard

(Float) The layer order on the map where the region should be drawn (higher zIndex means drawn on top of others).