1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! 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:
//!
//! ```
//! # use crs_definitions::Def;
//! let def = crs_definitions::from_code(4326);
//!
//! assert_eq!(def, Some(crs_definitions::EPSG_4326));
//! ```
//!
//! Lookup a CRS definition by a constant EPSG code:
//!
//! ```
//! # use crs_definitions::Def;
//! const def: Def = crs_definitions::from_code_const::<4326>();
//!
//! assert_eq!(def, crs_definitions::EPSG_4326);
//! ```
pub use *;
pub use *;
pub use *;