We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When doing tile based machine learning, you might want to avoid edge effect. One way to work around edge effect is to add a buffer around the tile.
add 👇
tile_bounds = self.tms.xy_bounds(*Tile(x=tile_x, y=tile_y, z=tile_z)) if buffer: # left, bottom, right, top x_res = (tile_bounds[2] - tile_bounds[0]) / tilesize y_res = (tile_bounds[3] - tile_bounds[1]) / tilesize tile_bounds = ( tile_bounds[0] - x_res * buffer, tile_bounds[1] - y_res * buffer, tile_bounds[2] + x_res * buffer, tile_bounds[3] + y_res * buffer, ) tilesize += buffer * 2
in
rio-tiler/rio_tiler/io/cogeo.py
Line 280 in c044102
cc @geospatial-jeff
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When doing tile based machine learning, you might want to avoid edge effect. One way to work around edge effect is to add a buffer around the tile.
How to
add 👇
in
rio-tiler/rio_tiler/io/cogeo.py
Line 280 in c044102
cc @geospatial-jeff
The text was updated successfully, but these errors were encountered: