Enum geozero::wkb::WKBGeometryType

source ·
pub enum WKBGeometryType {
Show 69 variants Unknown = 0, Point = 1, LineString = 2, Polygon = 3, MultiPoint = 4, MultiLineString = 5, MultiPolygon = 6, GeometryCollection = 7, CircularString = 8, CompoundCurve = 9, CurvePolygon = 10, MultiCurve = 11, MultiSurface = 12, Curve = 13, Surface = 14, PolyhedralSurface = 15, Tin = 16, Triangle = 17, PointZ = 1_001, LineStringZ = 1_002, PolygonZ = 1_003, MultiPointZ = 1_004, MultiLineStringZ = 1_005, MultiPolygonZ = 1_006, GeometryCollectionZ = 1_007, CircularStringZ = 1_008, CompoundCurveZ = 1_009, CurvePolygonZ = 1_010, MultiCurveZ = 1_011, MultiSurfaceZ = 1_012, CurveZ = 1_013, SurfaceZ = 1_014, PolyhedralSurfaceZ = 1_015, TinZ = 1_016, TriangleZ = 1_017, PointM = 2_001, LineStringM = 2_002, PolygonM = 2_003, MultiPointM = 2_004, MultiLineStringM = 2_005, MultiPolygonM = 2_006, GeometryCollectionM = 2_007, CircularStringM = 2_008, CompoundCurveM = 2_009, CurvePolygonM = 2_010, MultiCurveM = 2_011, MultiSurfaceM = 2_012, CurveM = 2_013, SurfaceM = 2_014, PolyhedralSurfaceM = 2_015, TinM = 2_016, TriangleM = 2_017, PointZM = 3_001, LineStringZM = 3_002, PolygonZM = 3_003, MultiPointZM = 3_004, MultiLineStringZM = 3_005, MultiPolygonZM = 3_006, GeometryCollectionZM = 3_007, CircularStringZM = 3_008, CompoundCurveZM = 3_009, CurvePolygonZM = 3_010, MultiCurveZM = 3_011, MultiSurfaceZM = 3_012, CurveZM = 3_013, SurfaceZM = 3_014, PolyhedralSurfaceZM = 3_015, TinZM = 3_016, TriangleZM = 3_017,
}
Expand description

WKB Types according to OGC 06-103r4 (https://www.ogc.org/standards/sfa)

Variants§

§

Unknown = 0

§

Point = 1

§

LineString = 2

§

Polygon = 3

§

MultiPoint = 4

§

MultiLineString = 5

§

MultiPolygon = 6

§

GeometryCollection = 7

§

CircularString = 8

§

CompoundCurve = 9

§

CurvePolygon = 10

§

MultiCurve = 11

§

MultiSurface = 12

§

Curve = 13

§

Surface = 14

§

PolyhedralSurface = 15

§

Tin = 16

§

Triangle = 17

§

PointZ = 1_001

§

LineStringZ = 1_002

§

PolygonZ = 1_003

§

MultiPointZ = 1_004

§

MultiLineStringZ = 1_005

§

MultiPolygonZ = 1_006

§

GeometryCollectionZ = 1_007

§

CircularStringZ = 1_008

§

CompoundCurveZ = 1_009

§

CurvePolygonZ = 1_010

§

MultiCurveZ = 1_011

§

MultiSurfaceZ = 1_012

§

CurveZ = 1_013

§

SurfaceZ = 1_014

§

PolyhedralSurfaceZ = 1_015

§

TinZ = 1_016

§

TriangleZ = 1_017

§

PointM = 2_001

§

LineStringM = 2_002

§

PolygonM = 2_003

§

MultiPointM = 2_004

§

MultiLineStringM = 2_005

§

MultiPolygonM = 2_006

§

GeometryCollectionM = 2_007

§

CircularStringM = 2_008

§

CompoundCurveM = 2_009

§

CurvePolygonM = 2_010

§

MultiCurveM = 2_011

§

MultiSurfaceM = 2_012

§

CurveM = 2_013

§

SurfaceM = 2_014

§

PolyhedralSurfaceM = 2_015

§

TinM = 2_016

§

TriangleM = 2_017

§

PointZM = 3_001

§

LineStringZM = 3_002

§

PolygonZM = 3_003

§

MultiPointZM = 3_004

§

MultiLineStringZM = 3_005

§

MultiPolygonZM = 3_006

§

GeometryCollectionZM = 3_007

§

CircularStringZM = 3_008

§

CompoundCurveZM = 3_009

§

CurvePolygonZM = 3_010

§

MultiCurveZM = 3_011

§

MultiSurfaceZM = 3_012

§

CurveZM = 3_013

§

SurfaceZM = 3_014

§

PolyhedralSurfaceZM = 3_015

§

TinZM = 3_016

§

TriangleZM = 3_017

Implementations§

source§

impl WKBGeometryType

source

pub fn from_u32(value: u32) -> Self

Trait Implementations§

source§

impl Clone for WKBGeometryType

source§

fn clone(&self) -> WKBGeometryType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for WKBGeometryType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for WKBGeometryType

source§

fn eq(&self, other: &WKBGeometryType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for WKBGeometryType

Auto Trait Implementations§

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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