From 9a0041286e41fd4a8883b7057257a4d55cb39104 Mon Sep 17 00:00:00 2001 From: ruffson Date: Mon, 19 Oct 2020 09:46:51 +0200 Subject: [PATCH] Remove print outs --- src/geo/geo_key.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/geo/geo_key.rs b/src/geo/geo_key.rs index 1ac9907..86f270d 100644 --- a/src/geo/geo_key.rs +++ b/src/geo/geo_key.rs @@ -105,18 +105,11 @@ pub fn parse_geo_keys( ) -> HashMap { let mut geodir: HashMap = HashMap::new(); if geokey_dir.len() < 4 { - // TODO: or return a error in a result + // TODO: or return an error in a result return geodir; } - println!( - "Directory Version: {}, {}.{}, dir length: {}", - geokey_dir[0], geokey_dir[1], geokey_dir[2], geokey_dir[3], - ); let num_keys = geokey_dir[3] as usize; - if geokey_dir.len() > 4 * num_keys + 4 { - println!("There are some aditional keys!!!"); - } for i in 0..num_keys { let idx = 4 + i * 4; @@ -124,7 +117,6 @@ pub fn parse_geo_keys( let key_id = match GeoKey::try_from(geokey_dir[idx] as usize) { Ok(value) => value, Err(_) => { - println!("Unknown tag found with geokey: {}", geokey_dir[idx]); continue; } }; @@ -132,11 +124,6 @@ pub fn parse_geo_keys( let count = geokey_dir[idx + 2]; let value_offset = geokey_dir[idx + 3]; - println!( - "KeyID: {:?}, TiffTag: {:?}, Count {:?}, ValueOffset {:?}", - key_id, tiff_tag_location, count, value_offset - ); - if tiff_tag_location == 0 { geodir.insert(key_id, GeoKeyType::Short(value_offset as u16)); } else if tiff_tag_location == 34736 { @@ -171,7 +158,6 @@ pub fn parse_geo_keys( None => continue, } } else if tiff_tag_location == 34735 { - println!("\n===========================================\n\nTHE CASE IS HERE\n\n\n---------------------------------\n"); // should be accessed rather by Tag::GeoKeyDirectoryTag // If the tag is the same as the GeoKeyDirectoryTag, the value_offset represents // SHORT values at the end of the `geokey_dir` itself. @@ -190,6 +176,5 @@ pub fn parse_geo_keys( continue; } } - println!("{:#?}", geodir); geodir }