pub struct JSONBuildGuide {Show 15 fields
pub name: String,
pub description: String,
pub version: String,
pub extension: String,
pub projection: Projection,
pub encoding: Encoding,
pub attribution: Attributions,
pub format: FormatOutput,
pub vector_sources: Vec<Source>,
pub raster_sources: Vec<Source>,
pub grid_sources: Vec<Source>,
pub build_indices: bool,
pub layer_guides: Vec<LayerGuide>,
pub threads: usize,
pub tile_writer: WhichTileWriting,
}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”]
attribution: 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
Defaults to "open-s2"
vector_sources: Vec<Source>The vector sources that the tile is built from and how the layers are to be stored.
Created using { [source_name: string]: Source }
See: crate::parsers::FeatureReader
raster_sources: Vec<Source>The raster sources that will be conjoined into a single rgba pixel index for tile extraction
grid_sources: Vec<Source>The grid sources that will be conjoined into a single grid index for tile extraction
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 See: {@link LayerGuide}
threads: usizeSet the number of threads to use. [Default: 1]
tile_writer: WhichTileWritingtileWriter
Trait Implementations§
Source§impl Clone for JSONBuildGuide
impl Clone for JSONBuildGuide
Source§fn clone(&self) -> JSONBuildGuide
fn clone(&self) -> JSONBuildGuide
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for JSONBuildGuide
impl Debug for JSONBuildGuide
Source§impl Default for JSONBuildGuide
impl Default for JSONBuildGuide
Source§impl<'de> Deserialize<'de> for JSONBuildGuidewhere
JSONBuildGuide: Default,
impl<'de> Deserialize<'de> for JSONBuildGuidewhere
JSONBuildGuide: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for JSONBuildGuide
impl PartialEq for JSONBuildGuide
Source§impl Serialize for JSONBuildGuide
impl Serialize for JSONBuildGuide
impl StructuralPartialEq for JSONBuildGuide
Auto Trait Implementations§
impl Freeze for JSONBuildGuide
impl RefUnwindSafe for JSONBuildGuide
impl Send for JSONBuildGuide
impl Sync for JSONBuildGuide
impl Unpin for JSONBuildGuide
impl UnwindSafe for JSONBuildGuide
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().