[ https://issues.apache.org/jira/browse/SIS-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Desruisseaux closed SIS-407. ----------------------------------- > OutOfMemoryError when reading Sentinel 1 image with GeoTIFF reader > ------------------------------------------------------------------ > > Key: SIS-407 > URL: https://issues.apache.org/jira/browse/SIS-407 > Project: Spatial Information Systems > Issue Type: Bug > Components: Storage > Affects Versions: 0.8 > Reporter: Martin Desruisseaux > Assignee: Martin Desruisseaux > Priority: Major > Fix For: 1.0 > > > 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. -- This message was sent by Atlassian Jira (v8.3.4#803005)