pub struct GeoKeyDirectory {Show 45 fields
pub model_type: Option<u16>,
pub raster_type: Option<u16>,
pub citation: Option<String>,
pub geographic_type: Option<u16>,
pub geog_citation: Option<String>,
pub geog_geodetic_datum: Option<u16>,
pub geog_prime_meridian: Option<u16>,
pub geog_linear_units: Option<u16>,
pub geog_linear_unit_size: Option<f64>,
pub geog_angular_units: Option<u16>,
pub geog_angular_unit_size: Option<f64>,
pub geog_ellipsoid: Option<u16>,
pub geog_semi_major_axis: Option<f64>,
pub geog_semi_minor_axis: Option<f64>,
pub geog_inv_flattening: Option<f64>,
pub geog_azimuth_units: Option<u16>,
pub geog_prime_meridian_long: Option<f64>,
pub projected_type: Option<u16>,
pub proj_citation: Option<String>,
pub projection: Option<u16>,
pub proj_coord_trans: Option<u16>,
pub proj_linear_units: Option<u16>,
pub proj_linear_unit_size: Option<f64>,
pub proj_std_parallel1: Option<f64>,
pub proj_std_parallel2: Option<f64>,
pub proj_nat_origin_long: Option<f64>,
pub proj_nat_origin_lat: Option<f64>,
pub proj_false_easting: Option<f64>,
pub proj_false_northing: Option<f64>,
pub proj_false_origin_long: Option<f64>,
pub proj_false_origin_lat: Option<f64>,
pub proj_false_origin_easting: Option<f64>,
pub proj_false_origin_northing: Option<f64>,
pub proj_center_long: Option<f64>,
pub proj_center_lat: Option<f64>,
pub proj_center_easting: Option<f64>,
pub proj_center_northing: Option<f64>,
pub proj_scale_at_nat_origin: Option<f64>,
pub proj_scale_at_center: Option<f64>,
pub proj_azimuth_angle: Option<f64>,
pub proj_straight_vert_pole_long: Option<f64>,
pub vertical: Option<u16>,
pub vertical_citation: Option<String>,
pub vertical_datum: Option<u16>,
pub vertical_units: Option<u16>,
}
Expand description
Metadata defined by the GeoTIFF standard.
http://docs.opengeospatial.org/is/19-008r4/19-008r4.html#_requirements_class_geokeydirectorytag
Fields§
§model_type: Option<u16>
§raster_type: Option<u16>
§citation: Option<String>
§geographic_type: Option<u16>
§geog_citation: Option<String>
§geog_geodetic_datum: Option<u16>
§geog_prime_meridian: Option<u16>
This key is used to specify a Prime Meridian from the GeoTIFF CRS register or to indicate that the Prime Meridian is user-defined. The default is Greenwich, England. https://docs.ogc.org/is/19-008r4/19-008r4.html#_requirements_class_primemeridiangeokey
geog_linear_units: Option<u16>
§geog_linear_unit_size: Option<f64>
§geog_angular_units: Option<u16>
§geog_angular_unit_size: Option<f64>
§geog_ellipsoid: Option<u16>
This key is provided to specify an ellipsoid (or sphere) from the GeoTIFF CRS register or to indicate that the ellipsoid (or sphere) is user-defined.
geog_semi_major_axis: Option<f64>
§geog_semi_minor_axis: Option<f64>
§geog_inv_flattening: Option<f64>
§geog_azimuth_units: Option<u16>
§geog_prime_meridian_long: Option<f64>
This key allows definition of a user-defined Prime Meridian, the location of which is defined by its longitude relative to the international reference meridian (for the earth this is Greenwich).
projected_type: Option<u16>
§proj_citation: Option<String>
§projection: Option<u16>
§proj_coord_trans: Option<u16>
§proj_linear_units: Option<u16>
§proj_linear_unit_size: Option<f64>
§proj_std_parallel1: Option<f64>
§proj_std_parallel2: Option<f64>
§proj_nat_origin_long: Option<f64>
§proj_nat_origin_lat: Option<f64>
§proj_false_easting: Option<f64>
§proj_false_northing: Option<f64>
§proj_false_origin_long: Option<f64>
§proj_false_origin_lat: Option<f64>
§proj_false_origin_easting: Option<f64>
§proj_false_origin_northing: Option<f64>
§proj_center_long: Option<f64>
§proj_center_lat: Option<f64>
§proj_center_easting: Option<f64>
§proj_center_northing: Option<f64>
§proj_scale_at_nat_origin: Option<f64>
§proj_scale_at_center: Option<f64>
§proj_azimuth_angle: Option<f64>
§proj_straight_vert_pole_long: Option<f64>
§vertical: Option<u16>
§vertical_citation: Option<String>
§vertical_datum: Option<u16>
§vertical_units: Option<u16>
Implementations§
Source§impl GeoKeyDirectory
impl GeoKeyDirectory
Sourcepub fn epsg_code(&self) -> Option<u16>
pub fn epsg_code(&self) -> Option<u16>
Return the EPSG code representing the crs of the image
This will return either GeoKeyDirectory::projected_type
or
GeoKeyDirectory::geographic_type
.
Trait Implementations§
Source§impl Clone for GeoKeyDirectory
impl Clone for GeoKeyDirectory
Source§fn clone(&self) -> GeoKeyDirectory
fn clone(&self) -> GeoKeyDirectory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GeoKeyDirectory
impl RefUnwindSafe for GeoKeyDirectory
impl Send for GeoKeyDirectory
impl Sync for GeoKeyDirectory
impl Unpin for GeoKeyDirectory
impl UnwindSafe for GeoKeyDirectory
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
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>
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 more