@@ -699,28 +699,28 @@ async def tileset(
699699 minzoom = src_dst .minzoom
700700 maxzoom = src_dst .maxzoom
701701
702- collection_bbox = {
703- "lowerLeft" : [bounds [0 ], bounds [1 ]],
704- "upperRight" : [bounds [2 ], bounds [3 ]],
705- "crs" : CRS_to_uri (tms .rasterio_geographic_crs ),
706- }
702+ collection_bbox = {
703+ "lowerLeft" : [bounds [0 ], bounds [1 ]],
704+ "upperRight" : [bounds [2 ], bounds [3 ]],
705+ "crs" : CRS_to_uri (tms .rasterio_geographic_crs ),
706+ }
707707
708- tilematrix_limit = []
709- for zoom in range (minzoom , maxzoom + 1 , 1 ):
710- matrix = tms .matrix (zoom )
711- ulTile = tms .tile (bounds [0 ], bounds [3 ], int (matrix .id ))
712- lrTile = tms .tile (bounds [2 ], bounds [1 ], int (matrix .id ))
713- minx , maxx = (min (ulTile .x , lrTile .x ), max (ulTile .x , lrTile .x ))
714- miny , maxy = (min (ulTile .y , lrTile .y ), max (ulTile .y , lrTile .y ))
715- tilematrix_limit .append (
716- {
717- "tileMatrix" : matrix .id ,
718- "minTileRow" : max (miny , 0 ),
719- "maxTileRow" : min (maxy , matrix .matrixHeight ),
720- "minTileCol" : max (minx , 0 ),
721- "maxTileCol" : min (maxx , matrix .matrixWidth ),
722- }
723- )
708+ tilematrix_limit = []
709+ for zoom in range (minzoom , maxzoom + 1 , 1 ):
710+ matrix = tms .matrix (zoom )
711+ ulTile = tms .tile (bounds [0 ], bounds [3 ], int (matrix .id ))
712+ lrTile = tms .tile (bounds [2 ], bounds [1 ], int (matrix .id ))
713+ minx , maxx = (min (ulTile .x , lrTile .x ), max (ulTile .x , lrTile .x ))
714+ miny , maxy = (min (ulTile .y , lrTile .y ), max (ulTile .y , lrTile .y ))
715+ tilematrix_limit .append (
716+ {
717+ "tileMatrix" : matrix .id ,
718+ "minTileRow" : max (miny , 0 ),
719+ "maxTileRow" : min (maxy , matrix .matrixHeight ),
720+ "minTileCol" : max (minx , 0 ),
721+ "maxTileCol" : min (maxx , matrix .matrixWidth ),
722+ }
723+ )
724724
725725 query_string = (
726726 f"?{ urlencode (request .query_params ._list )} "
0 commit comments