Description
When opening a Sentinel 1 GeoTIFF image, the call to DataStore.getMetadata() cause the JVM to attempt to allocate about one gigabyte of memory. This is not caused by the image size, but rather by a mathematical error. In the LocalizationGridBuilder class, private method infer computes the greatest common divisor of X and Y translations from the grid origin. Sentinel 1 image have control points spaced by 1320 pixels on the X axis, except the very last point which is only 1302 pixels after the previous one. This cause LocalizationGridBuilder to find a much smaller common divisor than expected (6 instead of 1320), which cause it to attempt to create a localization grid much larger than it should be.
Attachments
Issue Links
- depends upon
-
SIS-408 Add SpecializableTransform
- Closed