use-geographical-projection 0.1.0

Primitive map projection vocabulary for RustUse
Documentation
  • Coverage
  • 11.11%
    3 out of 27 items documented1 out of 13 items with examples
  • Size
  • Source code size: 11.04 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 742.81 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-geography
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-geographical-projection

Primitive map projection vocabulary for RustUse.

use-geographical-projection provides descriptive projection names, projection kinds, and simple projection parameter records without implementing projection math.

Non-goals

  • projection math
  • coordinate conversion
  • PROJ integration
  • geospatial transformation engines

Example

use use_projection::{ProjectionKind, ProjectionName, ProjectionParameter};

# fn main() -> Result<(), Box<dyn std::error::Error>> {
let name = ProjectionName::new("World Mercator")?;
let kind = "mercator".parse::<ProjectionKind>()?;
let parameter = ProjectionParameter::new("central-meridian", "0")?;

assert_eq!(name.as_str(), "World Mercator");
assert_eq!(kind, ProjectionKind::Mercator);
assert_eq!(parameter.to_string(), "central-meridian=0");
# Ok(())
# }