#[repr(u8)]pub enum CrsId {
Crs84 = 0,
Epsg4326 = 1,
Epsg4283 = 2,
Epsg7844 = 3,
Epsg9309 = 4,
Epsg4167 = 5,
Epsg4272 = 6,
Other = 255,
}Expand description
Ingest CRS recorded on native geo terms (one byte on the wire).
This is what was written, not what is stored: internal coordinates and
blob EWKB are always CRS84 (lon/lat) f64; crs only names the ingest CRS
so geof:getSRID and WKT/WKB output can transform back. Other marks an
unrecognized CRS URI and never appears on a native term — Other-CRS (and
untransformable) geometries stay ordinary typed literals.
Variants§
Crs84 = 0
OGC CRS84 — the only listed CRS that is longitude, latitude in WKT;
the internal storage CRS. Absent CRS prefix on geo:wktLiteral is this.
Epsg4326 = 1
EPSG:4326 (WGS 84 geographic 2D) — lat/lon axis order in WKT.
Epsg4283 = 2
EPSG:4283 (GDA94 geographic 2D).
Epsg7844 = 3
EPSG:7844 (GDA2020).
Epsg9309 = 4
EPSG:9309 (ATRF2014).
Epsg4167 = 5
EPSG:4167 (NZGD2000 geographic 2D).
Epsg4272 = 6
EPSG:4272 (NZGD1949, often labeled NZGD94).
Other = 255
Unrecognized CRS URI. Never written to a native geo term.
Implementations§
Source§impl CrsId
impl CrsId
Sourcepub const fn from_u8(byte: u8) -> Self
pub const fn from_u8(byte: u8) -> Self
Decode a wire byte. Other (255) decodes but is rejected by the geo
encode plugin before any native term is minted.
Sourcepub const fn canonical_uri(self) -> &'static str
pub const fn canonical_uri(self) -> &'static str
Canonical GeoSPARQL CRS URI emitted by WKT output
(<http://www.opengis.net/def/crs/EPSG/0/{N}> for EPSG members;
the OGC 1.3 CRS84 URI for CrsId::Crs84). Alias spellings are not
stored on the term, so serialize uses this default.