pub struct ParsedFeature {
pub geojson: Feature,
pub shared_properties: Option<SharedProperties>,
pub timestamp: u64,
pub end_timestamp: Option<u64>,
pub vertex_timestamps: Option<Vec<u64>>,
pub vertex_values: Option<Vec<f32>>,
pub vertex_value_matrix: Option<Vec<f32>>,
pub lon: f64,
pub lat: f64,
}Expand description
Parsed feature with geometry and temporal information
Fields§
§geojson: FeatureShared properties reference (avoids cloning during clipping)
timestamp: u64§end_timestamp: Option<u64>End timestamp for features with time ranges (if provided)
vertex_timestamps: Option<Vec<u64>>Optional per-vertex absolute Unix-ms timestamps for LineString
geometries. When present, the line-layer builder uses these directly
instead of interpolating uniformly by distance — lets the producer
pass real per-segment timing (e.g. OSRM annotations=duration)
through to the GPU.
MUST be the same length as the geometry’s coord count when set; length-mismatched values are dropped at the reader (logged once).
vertex_values: Option<Vec<f32>>Optional per-vertex scalar values (producer-defined; e.g. sea-surface
temperature for the ocean-drifter dataset). Same length contract as
vertex_timestamps; flows through clipping and into the tile’s
vertex_value column so renderers can color the line by it.
vertex_value_matrix: Option<Vec<f32>>Optional per-vertex × per-bucket value matrix, flattened vertex-major
(matrix[v * num_buckets + b]). Length is coord_count * num_buckets.
Carried through clipping (each bucket channel resampled like
vertex_values) into the tile’s vertex_value_matrix column so a
static-geometry overview can animate per-bucket without re-emitting
geometry. Mutually exclusive with vertex_values in practice.
lon: f64§lat: f64Trait Implementations§
Source§impl Clone for ParsedFeature
impl Clone for ParsedFeature
Source§fn clone(&self) -> ParsedFeature
fn clone(&self) -> ParsedFeature
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedFeature
impl RefUnwindSafe for ParsedFeature
impl Send for ParsedFeature
impl Sync for ParsedFeature
impl Unpin for ParsedFeature
impl UnsafeUnpin for ParsedFeature
impl UnwindSafe for ParsedFeature
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more