Skip to content
New issue

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

sketch for raw raster support in pcfuncs #150

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

vincentsarago
Copy link
Contributor

@vincentsarago vincentsarago commented Feb 1, 2023

This PR adds support for raw raster support in pcfuncs to allow direct access to the raster tiles values (instead of using PNG/JPEG representation of the data). This means that tiles should be required as tiff (png/jpeg/webp format will still be possible).

To Do

  • write more tests
  • add a statistics Mosaic class (like the PcMosaicAnimation class)

)
except Exception:
logger.warning(f"Tile request failed with backoff: {url}")
return None
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is an exception we return None, it will then be handled later

x = 0
y = 0
for i, img in enumerate(tile_images):
if not img:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there was an exception in get_tile

)
server = Server(config=config)
with server.run_in_thread():
yield "http://127.0.0.1:5000"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we create a small tiler which will run in thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant