pub struct TileStyle { /* private fields */ }Expand description
Implementations§
Source§impl TileStyle
impl TileStyle
Sourcepub fn format(&self) -> TileFormat
pub fn format(&self) -> TileFormat
Requested output encoding, PNG by default.
Sourcepub fn resampling(&self) -> Resampling
pub fn resampling(&self) -> Resampling
Kernel for the read/resize stage; reprojection can use a separate kernel.
Source§impl TileStyle
impl TileStyle
Sourcepub fn from_json(json: &str) -> AgResult<Self>
pub fn from_json(json: &str) -> AgResult<Self>
Parse Raster Style 3.0 JSON with versioned Mosaic and Tile extensions. Unsupported renderer capabilities fail before any raster is opened.
Sourcepub fn from_raster_query(query: &str) -> AgResult<Self>
pub fn from_raster_query(query: &str) -> AgResult<Self>
Parse an original, percent-encoded Q3 query. Do not URL-decode it first.
Sourcepub fn from_raster_style(style: &RasterStyle) -> AgResult<Self>
pub fn from_raster_style(style: &RasterStyle) -> AgResult<Self>
Adapt an SDK-validated document to the supported renderer.
Sourcepub fn raster_style_json(&self) -> &str
pub fn raster_style_json(&self) -> &str
The normalized Raster Style protocol document.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TileStyle
impl RefUnwindSafe for TileStyle
impl Send for TileStyle
impl Sync for TileStyle
impl Unpin for TileStyle
impl UnsafeUnpin for TileStyle
impl UnwindSafe for TileStyle
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
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> ⓘ
Converts
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> ⓘ
Converts
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