geosolutions-it/jai-ext

ScalePropertyGenerator can genarate ROIs with tile size set to one

Opened this issue · 2 comments

aaime commented

In high oversampling scenarios a image made of a single pixel, with a ROI, can be oversampled thousands of times. The property generator in this case is going to generate a ROI that is very large, but with tiles that are 1x1, killing the tiling subsystem (tile cache, tile oriented computation).

The scaled image itself does not get 1x1 tiles (possibly due to hints set by the caller), the property generator should leverage that information and create a ROI with the same tile layout as the scaled image (in this case it was a image mosaic output from GeoTools, with tiles that were 512x512)

aaime commented

Btw, probably best to check if there are other similar cases, affine and warp might be a candidates (geometric ops in general).

@aaime is this still open? I see it was referenced in a PR