Struct geozero::wkb::SpatiaLiteWkb

source ·
pub struct SpatiaLiteWkb<B: AsRef<[u8]>>(pub B);
Expand description

GeoPackage WKB reader.

Tuple Fields§

§0: B

Trait Implementations§

source§

impl<B: AsRef<[u8]>> GeozeroGeometry for SpatiaLiteWkb<B>

source§

fn process_geom<P: GeomProcessor>(&self, processor: &mut P) -> Result<()>

Process geometry.
source§

fn dims(&self) -> CoordDimensions

Dimensions of geometry
source§

fn srid(&self) -> Option<i32>

SRID of geometry

Auto Trait Implementations§

§

impl<B> Freeze for SpatiaLiteWkb<B>
where B: Freeze,

§

impl<B> RefUnwindSafe for SpatiaLiteWkb<B>
where B: RefUnwindSafe,

§

impl<B> Send for SpatiaLiteWkb<B>
where B: Send,

§

impl<B> Sync for SpatiaLiteWkb<B>
where B: Sync,

§

impl<B> Unpin for SpatiaLiteWkb<B>
where B: Unpin,

§

impl<B> UnwindSafe for SpatiaLiteWkb<B>
where B: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> IntoSql for T

source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression

Convert &self to an expression for Diesel’s query builder. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToGdal for T
where T: GeozeroGeometry,

source§

fn to_gdal(&self) -> Result<Geometry, GeozeroError>

Convert to 2D GDAL geometry.
source§

fn to_gdal_ndim(&self, dims: CoordDimensions) -> Result<Geometry, GeozeroError>

Convert to GDAL geometry with dimensions.
source§

impl<T> ToGeo for T
where T: GeozeroGeometry,

source§

fn to_geo(&self) -> Result<Geometry, GeozeroError>

Convert to geo-types Geometry.
source§

impl<T> ToGeos for T
where T: GeozeroGeometry,

source§

fn to_geos(&self) -> Result<Geometry<'_>, GeozeroError>

Convert to GEOS geometry.
source§

impl<T> ToJson for T
where T: GeozeroGeometry,

source§

fn to_json(&self) -> Result<String, GeozeroError>

Convert to GeoJSON String.
source§

impl<T> ToMvt for T
where T: GeozeroGeometry,

source§

fn to_mvt( &self, extent: u32, left: f64, bottom: f64, right: f64, top: f64 ) -> Result<Feature, GeozeroError>

Convert to MVT geometry. Read more
source§

fn to_mvt_unscaled(&self) -> Result<Feature, GeozeroError>

Convert to MVT geometry with geometries in unmodified tile coordinate space.
source§

impl<T> ToSvg for T
where T: GeozeroGeometry,

source§

fn to_svg(&self) -> Result<String, GeozeroError>

Convert to SVG geometry.
source§

fn to_svg_document(&self) -> Result<String, GeozeroError>

Convert to SVG document.
source§

impl<T> ToWkb for T
where T: GeozeroGeometry,

source§

fn to_wkb_dialect( &self, dialect: WkbDialect, dims: CoordDimensions, srid: Option<i32>, envelope: Vec<f64> ) -> Result<Vec<u8>, GeozeroError>

Convert to WKB dialect.
source§

fn to_wkb(&self, dims: CoordDimensions) -> Result<Vec<u8>>

Convert to OGC WKB.
source§

fn to_ewkb(&self, dims: CoordDimensions, srid: Option<i32>) -> Result<Vec<u8>>

Convert to EWKB.
source§

fn to_gpkg_wkb( &self, dims: CoordDimensions, srid: Option<i32>, envelope: Vec<f64> ) -> Result<Vec<u8>>

Convert to GeoPackage WKB.
source§

fn to_spatialite_wkb( &self, dims: CoordDimensions, srid: Option<i32>, envelope: Vec<f64> ) -> Result<Vec<u8>>

Convert to Spatialite WKB.
source§

fn to_mysql_wkb(&self, srid: Option<i32>) -> Result<Vec<u8>>

Convert to MySQL WKB.
source§

impl<T> ToWkt for T
where T: GeozeroGeometry,

source§

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

Convert to 2D WKT String.
source§

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

Convert to EWKT String.
source§

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

Convert to WKT String with dimensions.
source§

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

Convert to WKT String with srid, dimensions and dialect.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more