geosolutions-it / jai-ext

Java Advanced Imaging Open Source Replacement Wannabe
Apache License 2.0
90 stars 38 forks source link

ScalePropertyGenerator can genarate ROIs with tile size set to one #240

Open aaime opened 5 years ago

aaime commented 5 years ago

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 5 years ago

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

simboss commented 5 years ago

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