pub struct OpenVectorFeature {
pub id: Option<u64>,
pub properties: Properties,
pub type: FeatureType,
/* private fields */
}Expand description
Open Vector Tile Feature specification
Fields§
§id: Option<u64>the id of the feature
properties: Propertiesthe properties of the feature
type: FeatureTypethe type of the feature
Trait Implementations§
Source§impl Debug for OpenVectorFeature
impl Debug for OpenVectorFeature
Source§impl VectorFeatureMethods for OpenVectorFeature
impl VectorFeatureMethods for OpenVectorFeature
Source§fn get_type(&self) -> FeatureType
fn get_type(&self) -> FeatureType
Create a new OpenVectorFeature
Source§fn has_m_values(&self) -> bool
fn has_m_values(&self) -> bool
whether the feature has m values
Source§fn is_polygons(&self) -> bool
fn is_polygons(&self) -> bool
whether the feature is a polygon type
Source§fn is_points_3d(&self) -> bool
fn is_points_3d(&self) -> bool
whether the feature is a points 3D type
Source§fn is_lines_3d(&self) -> bool
fn is_lines_3d(&self) -> bool
whether the feature is a line 3D type
Source§fn is_polygons_3d(&self) -> bool
fn is_polygons_3d(&self) -> bool
whether the feature is a polygon 3D type
Source§fn load_points(&mut self) -> VectorPoints
fn load_points(&mut self) -> VectorPoints
regardless of the type, we return a flattend point array
Source§fn load_points_3d(&mut self) -> VectorPoints3D
fn load_points_3d(&mut self) -> VectorPoints3D
regardless of the type, we return a flattend point array
Source§fn load_lines(&mut self) -> VectorLinesWithOffset
fn load_lines(&mut self) -> VectorLinesWithOffset
an array of lines. The offsets will be set to 0
Source§fn load_lines_3d(&mut self) -> VectorLines3DWithOffset
fn load_lines_3d(&mut self) -> VectorLines3DWithOffset
an array of lines. The offsets will be set to 0
Source§fn read_indices(&mut self) -> Vec<u32>
fn read_indices(&mut self) -> Vec<u32>
returns the indices of the geometry
Source§fn 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
Source§fn 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
Source§fn 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)
Source§fn load_geometry(&mut self) -> VectorGeometry
fn load_geometry(&mut self) -> VectorGeometry
load the geometry
Source§fn properties(&self) -> Properties
fn properties(&self) -> Properties
the properties
Auto Trait Implementations§
impl Freeze for OpenVectorFeature
impl !RefUnwindSafe for OpenVectorFeature
impl !Send for OpenVectorFeature
impl !Sync for OpenVectorFeature
impl Unpin for OpenVectorFeature
impl !UnwindSafe for OpenVectorFeature
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