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§
sourcefn to_wkt_ndim(&self, dims: CoordDimensions) -> Result<String>
fn to_wkt_ndim(&self, dims: CoordDimensions) -> Result<String>
Convert to WKT String with dimensions.
sourcefn to_wkt_with_opts(
&self,
dialect: WktDialect,
dims: CoordDimensions,
srid: Option<i32>
) -> Result<String>
fn to_wkt_with_opts( &self, dialect: WktDialect, dims: CoordDimensions, srid: Option<i32> ) -> Result<String>
Convert to WKT String with srid, dimensions and dialect.