pub enum SortStrategy {
SpatialMorton,
SpatialHilbert,
Id,
}Expand description
Controls how features inside a layer are reordered before encoding.
Reordering features changes their position in every parallel column (geometry, ID, and all properties simultaneously), so the caller must opt in explicitly.
Variants§
SpatialMorton
Sort features by the Z-order (Morton) curve index of their first vertex.
Fast to compute. Spatially close features end up adjacent in the stream, improving RLE run lengths for location-correlated properties and CPU cache locality during client-side decoding.
SpatialHilbert
Sort features by the Hilbert curve index of their first vertex.
Slower to compute than Morton but achieves superior spatial locality.
Id
Sort features by their feature ID in ascending order.
Trait Implementations§
Source§impl Clone for SortStrategy
impl Clone for SortStrategy
Source§fn clone(&self) -> SortStrategy
fn clone(&self) -> SortStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 SortStrategy
impl Debug for SortStrategy
Source§impl IntoEnumIterator for SortStrategy
impl IntoEnumIterator for SortStrategy
Source§impl PartialEq for SortStrategy
impl PartialEq for SortStrategy
impl Copy for SortStrategy
impl Eq for SortStrategy
impl StructuralPartialEq for SortStrategy
Auto Trait Implementations§
impl Freeze for SortStrategy
impl RefUnwindSafe for SortStrategy
impl Send for SortStrategy
impl Sync for SortStrategy
impl Unpin for SortStrategy
impl UnsafeUnpin for SortStrategy
impl UnwindSafe for SortStrategy
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