pub struct MultiGeomColumnSet {
pub table_name: String,
pub columns: Vec<GeometryColumnDef>,
}Expand description
All geometry columns registered for a single feature table.
The first element of columns is treated as the primary geometry column
(the one used by readers that only support a single geometry column per
table). Additional elements are secondary columns.
Fields§
§table_name: StringName of the feature table (matches gpkg_contents.table_name).
columns: Vec<GeometryColumnDef>Ordered list of geometry columns; the first is the primary column.
Implementations§
Source§impl MultiGeomColumnSet
impl MultiGeomColumnSet
Sourcepub fn new(table_name: impl Into<String>) -> Self
pub fn new(table_name: impl Into<String>) -> Self
Create a new, empty column set for table_name.
Sourcepub fn primary(&self) -> Option<&GeometryColumnDef>
pub fn primary(&self) -> Option<&GeometryColumnDef>
Return a reference to the primary (first) geometry column, or None
when no columns have been registered yet.
Sourcepub fn find_by_name(&self, column_name: &str) -> Option<&GeometryColumnDef>
pub fn find_by_name(&self, column_name: &str) -> Option<&GeometryColumnDef>
Search for a geometry column by its column name.
Returns None when no column with that name exists in this set.
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Return the number of registered geometry columns.
Sourcepub fn has_multiple(&self) -> bool
pub fn has_multiple(&self) -> bool
Return true when this table has more than one geometry column.
Trait Implementations§
Source§impl Clone for MultiGeomColumnSet
impl Clone for MultiGeomColumnSet
Source§fn clone(&self) -> MultiGeomColumnSet
fn clone(&self) -> MultiGeomColumnSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more