Skip to content

Commit

Permalink
Rename COGReader's input parameter in example (#413)
Browse files Browse the repository at this point in the history
Change COGReader's input parameter from `my.tif` to `file` as passed in parameters.
  • Loading branch information
plant99 authored Aug 18, 2021
1 parent 63ea80b commit 11d6ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ At the low level, `rio-tiler` is *just* a wrapper around the [rasterio.vrt.Warpe
from rio_tiler.mosaic import mosaic_reader

def reader(file, x, y, z, **kwargs):
with COGReader("my.tif") as image:
with COGReader(file) as image:
return image.tile(x, y, z, **kwargs)

img, assets = mosaic_reader(["image1.tif", "image2.tif"], reader, x, y, z)
Expand Down

0 comments on commit 11d6ea8

Please sign in to comment.