GeoTools
  1. GeoTools
  2. GEOT-3040

Add checkEmptySourceRegion utility method to CoverageUtilities

    Details

    • Type: Wish Wish
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.3
    • Fix Version/s: 2.6.4, 2.7-M0
    • Component/s: coverage
    • Labels:
      None

      Description

      There are several coverage plugins (as an instance: imagemosaic, jp2k, imageio-ext-gdal, ...) which have an Utilities class containing a method which check if a provided dimensions, when intersected with a source region of an ImageReadParam instance, does not result in an empty rectangle. Moreover, in case the region intersection is not empty, it set that as the new source region for the ImageReadParam.
      It would be great to have that method shared in a common Utilities class.
      Best choice for this is the CoverageUtilities class in the Coverage module.

      The attached patch will allow for this.

      1. coverage.patch
        5 kB
        Daniele Romagnoli

        Issue Links

          Activity

          Hide
          Daniele Romagnoli added a comment -
          Fixed on both 2.6.x and trunk
          Show
          Daniele Romagnoli added a comment - Fixed on both 2.6.x and trunk
          Hide
          Andrea Aime added a comment -
          Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update
          Show
          Andrea Aime added a comment - Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

            People

            • Assignee:
              Daniele Romagnoli
              Reporter:
              Daniele Romagnoli
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: