Trait geozero::ToWkt

source ·
pub trait ToWkt {
    // Required methods
    fn to_wkt(&self) -> Result<String>;
    fn to_ewkt(&self, srid: Option<i32>) -> Result<String>;
    fn to_wkt_ndim(&self, dims: CoordDimensions) -> Result<String>;
    fn to_wkt_with_opts(
        &self,
        dialect: WktDialect,
        dims: CoordDimensions,
        srid: Option<i32>
    ) -> Result<String>;
}
Expand description

Convert to WKT.

Required Methods§

source

fn to_wkt(&self) -> Result<String>

Convert to 2D WKT String.

source

fn to_ewkt(&self, srid: Option<i32>) -> Result<String>

Convert to EWKT String.

source

fn to_wkt_ndim(&self, dims: CoordDimensions) -> Result<String>

Convert to WKT String with dimensions.

source

fn to_wkt_with_opts( &self, dialect: WktDialect, dims: CoordDimensions, srid: Option<i32> ) -> Result<String>

Convert to WKT String with srid, dimensions and dialect.

Implementors§