Skip to content

Commit

Permalink
test: tilejson
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKreil committed Jan 2, 2025
1 parent 81a4368 commit c826581
Show file tree
Hide file tree
Showing 5 changed files with 710 additions and 158 deletions.
3 changes: 0 additions & 3 deletions versatiles_container/src/container/mbtiles/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ impl MBTilesReader {
let vector_layers = object
.get("vector_layers")
.with_context(|| anyhow!("expected 'vector_layers'"))?;
let vector_layers = vector_layers
.as_array()
.with_context(|| anyhow!("expected 'vector_layers' as array"))?;
self.tilejson.set_vector_layers(vector_layers)?;
}
_ => {}
Expand Down
2 changes: 1 addition & 1 deletion versatiles_core/src/types/tile_bbox_pyramid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl TileBBoxPyramid {
/// * `geo_bbox` - A reference to an array of four `f64` values representing the geographical bounding box.
pub fn from_geo_bbox(zoom_level_min: u8, zoom_level_max: u8, bbox: &GeoBBox) -> TileBBoxPyramid {
let mut pyramid = TileBBoxPyramid::new_empty();
for z in zoom_level_min..zoom_level_max {
for z in zoom_level_min..=zoom_level_max {
pyramid.set_level_bbox(TileBBox::from_geo(z, bbox).unwrap());
}
pyramid
Expand Down
Loading

0 comments on commit c826581

Please sign in to comment.