pub enum GeometryTypeId {
Geometry,
Point,
LineString,
Polygon,
MultiPoint,
MultiLineString,
MultiPolygon,
GeometryCollection,
}Expand description
Geometry types
An enumerator for the set of natively supported geometry types without considering Dimensions. See GeometryTypeAndDimensions for a struct to track both.
This is named GeometryTypeId such that it does not conflict with geo_traits::GeometryType.
Variants§
Geometry
Unknown or mixed geometry type
Point
Point geometry type
LineString
LineString geometry type
Polygon
Polygon geometry type
MultiPoint
MultiPoint geometry type
MultiLineString
MultiLineString geometry type
MultiPolygon
MultiPolygon geometry type
GeometryCollection
GeometryCollection geometry type
Implementations§
Source§impl GeometryTypeId
impl GeometryTypeId
Sourcepub fn try_from_wkb_id(wkb_id: u32) -> Result<Self, SedonaGeometryError>
pub fn try_from_wkb_id(wkb_id: u32) -> Result<Self, SedonaGeometryError>
Construct a geometry type from a WKB type integer
Parses the geometry type (not dimension) component of a WKB type code (e.g., 1 for Point…7 for GeometryCollection).
Sourcepub fn wkb_id(&self) -> u32
pub fn wkb_id(&self) -> u32
WKB integer identifier
The GeometryType portion of the WKB identifier (e.g., 1 for Point…7 for GeometryCollection).
Sourcepub fn geojson_id(&self) -> &'static str
pub fn geojson_id(&self) -> &'static str
GeoJSON/GeoParquet string identifier
The identifier used by GeoJSON and GeoParquet to refer to this geometry type. Use FromStr to parse such a string back into a GeometryTypeId.
Trait Implementations§
Source§impl Clone for GeometryTypeId
impl Clone for GeometryTypeId
Source§fn clone(&self) -> GeometryTypeId
fn clone(&self) -> GeometryTypeId
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeometryTypeId
impl Debug for GeometryTypeId
Source§impl<'de> Deserialize<'de> for GeometryTypeId
impl<'de> Deserialize<'de> for GeometryTypeId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FromStr for GeometryTypeId
impl FromStr for GeometryTypeId
Source§impl Hash for GeometryTypeId
impl Hash for GeometryTypeId
Source§impl PartialEq for GeometryTypeId
impl PartialEq for GeometryTypeId
Source§impl Serialize for GeometryTypeId
impl Serialize for GeometryTypeId
impl Copy for GeometryTypeId
impl Eq for GeometryTypeId
impl StructuralPartialEq for GeometryTypeId
Auto Trait Implementations§
impl Freeze for GeometryTypeId
impl RefUnwindSafe for GeometryTypeId
impl Send for GeometryTypeId
impl Sync for GeometryTypeId
impl Unpin for GeometryTypeId
impl UnsafeUnpin for GeometryTypeId
impl UnwindSafe for GeometryTypeId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.