Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-407

OutOfMemoryError when reading Sentinel 1 image with GeoTIFF reader

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 1.0
    • Component/s: Storage
    • Labels:
      None

      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

          Activity

            People

            • Assignee:
              desruisseaux Martin Desruisseaux
              Reporter:
              desruisseaux Martin Desruisseaux

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment