proj4wkt 0.1.1

Parse WKT to Proj strings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//!
//! Crate errors
//!
use std::borrow::Cow;

#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("WKT parse error")]
    Parse,
    #[error("WKT error: {0}")]
    Wkt(Cow<'static, str>),
    #[error("JS parse error")]
    JsParse,
    #[error("Format error")]
    Fmt(#[from] std::io::Error),
}

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