diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index 95f84d1..ccd62bf 100644 --- a/src/decoder/mod.rs +++ b/src/decoder/mod.rs @@ -210,6 +210,7 @@ where photometric_interpretation: PhotometricInterpretation, compression_method: CompressionMethod, strip_decoder: Option, + geokey_dir: Option>, } trait Wrapping { @@ -325,6 +326,7 @@ impl Decoder { photometric_interpretation: PhotometricInterpretation::BlackIsZero, compression_method: CompressionMethod::None, strip_decoder: None, + geokey_dir: None, } .init() } @@ -478,7 +480,11 @@ impl Decoder { Ok(geodir) => { let ascii_params = Result::ok(self.get_tag_ascii_string(Tag::GeoAsciiParamsTag)); let double_params = Result::ok(self.get_tag_f64_vec(Tag::GeoDoubleParamsTag)); - geo::geo_key::parse_geo_keys(geodir, ascii_params, double_params); + self.geokey_dir = Some(geo::geo_key::parse_geo_keys( + geodir, + ascii_params, + double_params, + )); // TODO: save the hashmap somewhere in this module/decoder } Err(_) => {}