CoordRefSys class

Metadata about a coordinate reference system (CRS) identified and specified by id.

NOTE: The current version of this class does not yet provide very much CRS metadata, but in future this might also provide more information.

Annotations
  • @immutable

Constructors

CoordRefSys.from({CoordRefSys? coordRefSys, String? crs})
The coordinate reference system resolved in this order:
factory
CoordRefSys.id(String id)
Metadata about a coordinate reference system (CRS) identified and specified by id.
const
CoordRefSys.normalized(String id)
Metadata about a coordinate reference system (CRS) identified and specified by the normalized identifier of id.

Properties

axisOrder AxisOrder?
Try to resolve the axis order (as a CRS authority has specified it) of coordinate values in position and point representations for this coordinate reference system identified by id.
no setter
epsg String?
Returns an EPSG identifier according to the common EPSG:{code} template for id if the coordinate reference system is recognized by the EPSG register.
no setter
epsgCode int?
Returns an EPSG code according to the common EPSG:{code} template for id if the coordinate reference system is recognized by the EPSG register.
no setter
hashCode int
The hash code for this object.
no setteroverride
id String
The coordinate reference system (CRS) identifier.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isGeographic({bool? wgs84, AxisOrder? order}) bool
Returns true if coordinate reference system identified by id represents geographic coordinates.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
swapXY({GeoRepresentation? logic}) bool
Whether x and y coordinates read from (or written to) external data representation should be swapped for the coordinate reference system identified by id before using in internal data structures of this package.
toString() String
A string representation of this object.
override

Operators

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

Constants

CRS84 → const CoordRefSys
The coordinate reference system identified by 'http://www.opengis.net/def/crs/OGC/1.3/CRS84'.
CRS84h → const CoordRefSys
The coordinate reference system identified by 'http://www.opengis.net/def/crs/OGC/1.3/CRS84h'.
EPSG_3395 → const CoordRefSys
The coordinate reference system identified by 'http://www.opengis.net/def/crs/EPSG/0/3395'.
EPSG_3857 → const CoordRefSys
The coordinate reference system identified by 'http://www.opengis.net/def/crs/EPSG/0/3857'.
EPSG_4258 → const CoordRefSys
The coordinate reference system identified by 'http://www.opengis.net/def/crs/EPSG/0/4258'.
EPSG_4326 → const CoordRefSys
The coordinate reference system identified by 'http://www.opengis.net/def/crs/EPSG/0/4326'.