GeoRepresentation enum

An enum for spatial representations that can be used to code logic when need to choose some options based on a representation.

The original use case for this enum is the problem of choosing the axis order of coordinate values in position and point representations.

Inheritance

Constructors

GeoRepresentation()
const

Values

crsAuthority → const GeoRepresentation

The default representation of coordinates and geometries that represents coordinates in the axis order specified by an authority (like EPSG or OGC) in cases where order is not explicitely defined elsewhere.

See also geoJsonStrict.

geoJsonStrict → const GeoRepresentation

The GeoJSON representation of coordinates and geometries that always represents longitude (or easting) before latitude (or northing).

According to the specification:

"A position is an array of numbers. There MUST be two or more elements. The first two elements are longitude and latitude, or easting and northing, precisely in that order and using decimal numbers. Altitude or elevation MAY be included as an optional third element."

"The coordinate reference system for all GeoJSON coordinates is a geographic coordinate reference system, using the World Geodetic System 1984 (WGS 84) datum, with longitude and latitude units of decimal degrees. This is equivalent to the coordinate reference system identified by the Open Geospatial Consortium (OGC) URN urn:ogc:def:crs:OGC::CRS84. An OPTIONAL third-position element SHALL be the height in meters above or below the WGS 84 reference ellipsoid. In the absence of elevation values, applications sensitive to height or depth SHOULD interpret positions as being at local ground or sea level."

"Note: the use of alternative coordinate reference systems was specified in GJ2008, but it has been removed from this version of the specification because the use of different coordinate reference systems -- especially in the manner specified in GJ2008 -- has proven to have interoperability issues. In general, GeoJSON processing software is not expected to have access to coordinate reference system databases or to have network access to coordinate reference system transformation parameters. However, where all involved parties have a prior arrangement, alternative coordinate reference systems can be used without risk of data being misinterpreted."

See also crsAuthority.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<GeoRepresentation>
A constant List of the values in this enum, in order of their declaration.