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

Provide an option to output large regions as tiled tiffs #594

Merged
merged 2 commits into from
May 17, 2021

Conversation

manthey
Copy link
Member

@manthey manthey commented Apr 20, 2021

This also will geotag geospatial outputs.

Specifically, when calling the getRegion function or endpoint, if an encoding of TILED is used (previously this could have been one of JPEG, PNG, or TIFF), a tiled tiff is output. For non-geospatial sources, this is tiled using vips. For geospatial sources, this is tiled using gdal.

When using the TILED option, a variety of parameters that can be used in conversions can be used: compression, quality. For compatibility, these can also be tiffCompression and jpegQuality.

@manthey
Copy link
Member Author

manthey commented Apr 20, 2021

This resolves #566. This resolves #567.

@manthey manthey force-pushed the tiled-regions branch 2 times, most recently from b465530 to 32b2299 Compare April 20, 2021 15:24
@manthey manthey marked this pull request as ready for review April 20, 2021 16:05
@manthey
Copy link
Member Author

manthey commented Apr 20, 2021

When getting a tiled region of a geospatial source without any styling, this uses gdal.Warp to create the region. This code path preserves semantic information in the data, such as categorical mappings.

manthey added 2 commits May 14, 2021 15:58
This also will geotag geospatial outputs.

Specifically, when calling the getRegion function or endpoint, if an
encoding of `TILED` is used (previously this could have been one of
`JPEG`, `PNG`, or `TIFF`), a tiled tiff is output.  For non-geospatial
sources, this is tiled using vips.  For geospatial sources, this is
tiled using gdal.

When using the `TILED` option, a variety of parameters that can be used
in conversions can be used: `compression`, `quality`.  For
compatibility, these can also be `tiffCompression` and `jpegQuality`.
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