#epsg #geospatial #projection #osgeo

crs-definitions

CRS (coordinate reference system) definitions

5 releases (3 breaking)

new 0.4.0 Jan 9, 2026
0.3.1 Aug 15, 2025
0.3.0 Nov 10, 2023
0.2.0 Nov 10, 2023
0.1.0 Nov 7, 2023

#179 in Geospatial

Download history 910/week @ 2025-09-25 326/week @ 2025-10-02 520/week @ 2025-10-09 793/week @ 2025-10-16 752/week @ 2025-10-23 863/week @ 2025-10-30 1021/week @ 2025-11-06 724/week @ 2025-11-13 1501/week @ 2025-11-20 936/week @ 2025-11-27 1256/week @ 2025-12-04 682/week @ 2025-12-11 701/week @ 2025-12-18 154/week @ 2025-12-25 198/week @ 2026-01-01 143/week @ 2026-01-08

1,349 downloads per month
Used in 8 crates (5 directly)

CC0 license

9.5MB
23K SLoC

crs-definitions

Rust crate containing CRS definitions.

See https://docs.rs/crs-definitions for example usage and documentation.


lib.rs:

CRS (coordinate reference system) definitions.

Pulled from https://github.com/DanielJDufour/crs-csv.

Examples

Accessing a CRS definition directly by constant:

let def = crs_definitions::EPSG_4326;

assert_eq!(
    def.proj4,
    r#"+proj=longlat +datum=WGS84 +no_defs"#,
);

assert_eq!(
    def.wkt,
    r#"GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]"#,
);

Lookup a CRS definition by an EPSG code:

let def = crs_definitions::from_code(4326);

assert_eq!(def, Some(crs_definitions::EPSG_4326));

Lookup a CRS definition by a constant EPSG code:

const def: Def = crs_definitions::from_code_const::<4326>();

assert_eq!(def, crs_definitions::EPSG_4326);

No runtime deps

Features