pub trait ToMvt {
// Required methods
fn to_mvt(
&self,
extent: u32,
left: f64,
bottom: f64,
right: f64,
top: f64
) -> Result<Feature>;
fn to_mvt_unscaled(&self) -> Result<Feature>;
}
Expand description
Convert to MVT geometry.
Required Methods§
sourcefn to_mvt(
&self,
extent: u32,
left: f64,
bottom: f64,
right: f64,
top: f64
) -> Result<Feature>
fn to_mvt( &self, extent: u32, left: f64, bottom: f64, right: f64, top: f64 ) -> Result<Feature>
Convert to MVT geometry.
§Arguments
extent
- Size of MVT tile in tile coordinate space (e.g. 4096).left
,bottom
,right
,top
- Bounds of tile in map coordinate space, with no buffer.
sourcefn to_mvt_unscaled(&self) -> Result<Feature>
fn to_mvt_unscaled(&self) -> Result<Feature>
Convert to MVT geometry with geometries in unmodified tile coordinate space.