pub trait VectorFeatureMethods {
Show 24 methods
// Required methods
fn id(&self) -> Option<u64>;
fn version(&self) -> u16;
fn properties(&self) -> Properties;
fn extent(&self) -> usize;
fn get_type(&self) -> FeatureType;
fn bbox(&self) -> Option<BBOX>;
fn has_m_values(&self) -> bool;
fn is_points(&self) -> bool;
fn is_lines(&self) -> bool;
fn is_polygons(&self) -> bool;
fn is_points_3d(&self) -> bool;
fn is_lines_3d(&self) -> bool;
fn is_polygons_3d(&self) -> bool;
fn load_points(&mut self) -> VectorPoints;
fn load_points_3d(&mut self) -> VectorPoints3D;
fn load_lines(&mut self) -> VectorLinesWithOffset;
fn load_lines_3d(&mut self) -> VectorLines3DWithOffset;
fn load_polys(&mut self) -> Vec<VectorLinesWithOffset>;
fn load_polys_3d(&mut self) -> Vec<VectorLines3DWithOffset>;
fn load_geometry_flat(&mut self) -> (Vec<f64>, Vec<u32>);
fn load_geometry(&mut self) -> VectorGeometry;
fn read_indices(&mut self) -> Vec<u32>;
fn add_tessellation(&mut self, geometry: &mut Vec<f64>, multiplier: f64);
fn add_tessellation_3d(&mut self, geometry: &mut Vec<f64>, multiplier: f64);
}
Expand description
Methods that all vector features should have
Required Methods§
Sourcefn properties(&self) -> Properties
fn properties(&self) -> Properties
the properties
Sourcefn get_type(&self) -> FeatureType
fn get_type(&self) -> FeatureType
the feature type
Sourcefn has_m_values(&self) -> bool
fn has_m_values(&self) -> bool
whether the feature has m values
Sourcefn is_polygons(&self) -> bool
fn is_polygons(&self) -> bool
whether the feature is a polygon type
Sourcefn is_points_3d(&self) -> bool
fn is_points_3d(&self) -> bool
whether the feature is a points 3D type
Sourcefn is_lines_3d(&self) -> bool
fn is_lines_3d(&self) -> bool
whether the feature is a line 3D type
Sourcefn is_polygons_3d(&self) -> bool
fn is_polygons_3d(&self) -> bool
whether the feature is a polygon 3D type
Sourcefn load_points(&mut self) -> VectorPoints
fn load_points(&mut self) -> VectorPoints
regardless of the type, we return a flattend point array
Sourcefn load_points_3d(&mut self) -> VectorPoints3D
fn load_points_3d(&mut self) -> VectorPoints3D
regardless of the type, we return a flattend point3D array
Sourcefn load_lines(&mut self) -> VectorLinesWithOffset
fn load_lines(&mut self) -> VectorLinesWithOffset
an array of lines.
Sourcefn load_lines_3d(&mut self) -> VectorLines3DWithOffset
fn load_lines_3d(&mut self) -> VectorLines3DWithOffset
an array of 3D lines.
Sourcefn load_polys(&mut self) -> Vec<VectorLinesWithOffset>
fn load_polys(&mut self) -> Vec<VectorLinesWithOffset>
an array of polygons.
Sourcefn load_polys_3d(&mut self) -> Vec<VectorLines3DWithOffset>
fn load_polys_3d(&mut self) -> Vec<VectorLines3DWithOffset>
an array of 3D polygons.
Sourcefn load_geometry_flat(&mut self) -> (Vec<f64>, Vec<u32>)
fn load_geometry_flat(&mut self) -> (Vec<f64>, Vec<u32>)
(flattened geometry & tesslation if applicable, indices)
Sourcefn load_geometry(&mut self) -> VectorGeometry
fn load_geometry(&mut self) -> VectorGeometry
load the geometry
Sourcefn read_indices(&mut self) -> Vec<u32>
fn read_indices(&mut self) -> Vec<u32>
load the indices
Sourcefn add_tessellation(&mut self, geometry: &mut Vec<f64>, multiplier: f64)
fn add_tessellation(&mut self, geometry: &mut Vec<f64>, multiplier: f64)
Add tessellation data to the geometry
Sourcefn add_tessellation_3d(&mut self, geometry: &mut Vec<f64>, multiplier: f64)
fn add_tessellation_3d(&mut self, geometry: &mut Vec<f64>, multiplier: f64)
Add 3D tessellation data to the geometry