proj-core 0.2.0

Pure-Rust coordinate transformation library with no C dependencies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug, Error)]
pub enum Error {
    #[error("unknown CRS: {0}")]
    UnknownCrs(String),

    #[error("unsupported projection: {0}")]
    UnsupportedProjection(String),

    #[error("invalid CRS definition: {0}")]
    InvalidDefinition(String),

    #[error("coordinate out of range: {0}")]
    OutOfRange(String),
}