pub struct Projection {
pub code: Option<String>,
pub wkt2: Option<String>,
pub projjson: Option<Map<String, Value>>,
pub geometry: Option<Geometry>,
pub bbox: Option<Vec<f64>>,
pub centroid: Option<Centroid>,
pub shape: Option<Vec<usize>>,
pub transform: Option<Vec<f64>>,
}
Expand description
The projection extension fields.
Fields§
§code: Option<String>
EPSG code of the datasource
wkt2: Option<String>
WKT2 string representing the Coordinate Reference System (CRS) that the proj:geometry and proj:bbox fields represent
projjson: Option<Map<String, Value>>
PROJJSON object representing the Coordinate Reference System (CRS) that the proj:geometry and proj:bbox fields represent
geometry: Option<Geometry>
Defines the footprint of this Item.
bbox: Option<Vec<f64>>
Bounding box of the Item in the asset CRS in 2 or 3 dimensions.
centroid: Option<Centroid>
Coordinates representing the centroid of the Item (in lat/long)
shape: Option<Vec<usize>>
Number of pixels in Y and X directions for the default grid
transform: Option<Vec<f64>>
The affine transformation coefficients for the default grid
Implementations§
Trait Implementations§
Source§impl Clone for Projection
impl Clone for Projection
Source§fn clone(&self) -> Projection
fn clone(&self) -> Projection
Returns a copy 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 Projection
impl Debug for Projection
Source§impl Default for Projection
impl Default for Projection
Source§fn default() -> Projection
fn default() -> Projection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Projection
impl<'de> Deserialize<'de> for Projection
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Extension for Projection
impl Extension for Projection
Source§impl PartialEq for Projection
impl PartialEq for Projection
Source§impl Serialize for Projection
impl Serialize for Projection
impl StructuralPartialEq for Projection
Auto Trait Implementations§
impl Freeze for Projection
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnwindSafe for Projection
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