Skip to content

Commit

Permalink
feat: probe also bbox
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKreil committed Sep 28, 2023
1 parent ed001fe commit 3adfdab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion versatiles-lib/src/containers/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ pub trait TileReaderTrait: Debug + Send + Sync + Unpin {
async fn probe(&mut self, level: u8) -> Result<()> {
let mut print = PrettyPrint::new();

let cat = print.get_category("parameters").await;
let cat = print.get_category("meta_data").await;
cat.add_key_value("name", self.get_name()?).await;
cat.add_key_value("container", self.get_container_name()?).await;

let meta_option = self.get_meta().await?;
if let Some(meta) = meta_option {
cat.add_key_value("meta", meta.as_str()).await;
Expand Down
3 changes: 3 additions & 0 deletions versatiles-lib/src/shared/tile_reader_parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ impl TileReaderParameters {
for level in self.bbox_pyramid.iter_levels() {
p.add_value(level).await
}
print
.add_key_value("bbox", &format!("{:?}", self.bbox_pyramid.get_geo_bbox()))
.await;
print.add_key_value("decompressor", &self.decompressor).await;
print.add_key_value("flip_y", &self.flip_y).await;
print.add_key_value("swap_xy", &self.swap_xy).await;
Expand Down

0 comments on commit 3adfdab

Please sign in to comment.