pub struct GeometryColumnDef {
pub table_name: String,
pub column_name: String,
pub geometry_type_name: String,
pub srs_id: i32,
pub has_z: bool,
pub has_m: bool,
}Expand description
Describes a single geometry column registered in gpkg_geometry_columns.
This mirrors one row of that system table, with the z/m flags decoded into
bool fields for ergonomic use.
Fields§
§table_name: StringName of the feature table that owns this geometry column.
column_name: StringName of the column inside that feature table (e.g. "geom").
geometry_type_name: StringOGC geometry type name stored in gpkg_geometry_columns
(e.g. "POINT", "MULTIPOLYGON").
srs_id: i32Spatial reference system identifier.
has_z: booltrue when the z coordinate rule is 1 (mandatory) or 2 (optional).
has_m: booltrue when the m coordinate rule is 1 (mandatory) or 2 (optional).
Implementations§
Source§impl GeometryColumnDef
impl GeometryColumnDef
Sourcepub fn from_raw(
table_name: impl Into<String>,
column_name: impl Into<String>,
geometry_type_name: impl Into<String>,
srs_id: i32,
z_flag: u8,
m_flag: u8,
) -> Self
pub fn from_raw( table_name: impl Into<String>, column_name: impl Into<String>, geometry_type_name: impl Into<String>, srs_id: i32, z_flag: u8, m_flag: u8, ) -> Self
Construct a new GeometryColumnDef from raw field values.
z_flag and m_flag are the raw integer values from the
gpkg_geometry_columns table: 0 = prohibited, 1 = mandatory, 2 = optional.
Trait Implementations§
Source§impl Clone for GeometryColumnDef
impl Clone for GeometryColumnDef
Source§fn clone(&self) -> GeometryColumnDef
fn clone(&self) -> GeometryColumnDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeometryColumnDef
impl Debug for GeometryColumnDef
Source§impl PartialEq for GeometryColumnDef
impl PartialEq for GeometryColumnDef
Source§fn eq(&self, other: &GeometryColumnDef) -> bool
fn eq(&self, other: &GeometryColumnDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeometryColumnDef
Auto Trait Implementations§
impl Freeze for GeometryColumnDef
impl RefUnwindSafe for GeometryColumnDef
impl Send for GeometryColumnDef
impl Sync for GeometryColumnDef
impl Unpin for GeometryColumnDef
impl UnsafeUnpin for GeometryColumnDef
impl UnwindSafe for GeometryColumnDef
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
Mutably borrows from an owned value. Read more