pub struct BuildGuide {
pub name: String,
pub description: String,
pub version: String,
pub extension: String,
pub projection: Projection,
pub encoding: Encoding,
pub attributions: Attributions,
pub format: FormatOutput,
pub build_indices: bool,
pub layer_guides: Vec<LayerGuide>,
pub threads: usize,
}Expand description
A user defined guide on building the vector tiles
Fields§
§name: StringThe name of the data
description: StringThe description of the data
version: StringUser defined versioning for their data
extension: StringSpecify the image type. e.g. “pbf”, “png”, “jpg”, “webp”, etc.
[Default: "pbf"]
projection: ProjectionWhat kind of output format should be used. Used for describing either S2 or WM
projections. [Default: "fzxy"]
encoding: EncodingThe encoding format. Can be either “gz”, “br”, “zstd” or “none”. [Default: "none"]
attributions: AttributionsThe attribution of the data. Store as { "presentation name": "href" }.
format: FormatOutputThe vector format if applicable helps define how the vector data is stored.
- The more modern vector format is the “open-s2” which supports things like m-values and 3D geometries.
- The new vector format is the “open-s2” which only supports 2D & 3D geometries, supports M-Values, properties and M-Values can have nested properties and/or arrays, and is decently fast to parse.
- The basic vector format is the “flat-open-s2” which only supports 2D geometries and works on older map engines like Mapbox-gl-js, is faster to parse and often lighter in size.
- The older vector format is the “mapbox” which is the legacy format used by Mapbox and slow to parse.
- The
rasterformat is used speciially for raster ONLY data. Ensures the data is stored as a raster
[Default: "open-s2"]
build_indices: boolShould the indices be built for polygon data for faster rendering (file cost increases). [Default: true]
layer_guides: Vec<LayerGuide>The guides on how to build the various data
threads: usizeSet the number of threads to use. [Default: 1]
Trait Implementations§
Source§impl Clone for BuildGuide
impl Clone for BuildGuide
Source§fn clone(&self) -> BuildGuide
fn clone(&self) -> BuildGuide
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BuildGuide
impl Debug for BuildGuide
Auto Trait Implementations§
impl Freeze for BuildGuide
impl RefUnwindSafe for BuildGuide
impl Send for BuildGuide
impl Sync for BuildGuide
impl Unpin for BuildGuide
impl UnwindSafe for BuildGuide
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().