Class DirectResamplingMapFactory

java.lang.Object
noaa.coastwatch.util.DirectResamplingMapFactory
All Implemented Interfaces:
ResamplingMapFactory

public class DirectResamplingMapFactory extends Object implements ResamplingMapFactory

The DirectResamplingMapFactory class creates a resampling map by directly querying the source transform for the data location of each earth location in the destination transform.

Since:
3.5.0
Author:
Peter Hollemans
  • Constructor Details

    • DirectResamplingMapFactory

      public DirectResamplingMapFactory(EarthTransform sourceTrans, EarthTransform destTrans)
      Creates a new resampling factory from the source and destination transforms.
      Parameters:
      sourceTrans - the source earth transform.
      destTrans - the destination earth transform.
  • Method Details

    • create

      public ResamplingMap create(int[] start, int[] length)
      Description copied from interface: ResamplingMapFactory
      Creates a new resampling map that covers a specified set of destination coordinates.
      Specified by:
      create in interface ResamplingMapFactory
      Parameters:
      start - the starting rectangle coordinates in the destination space as [row, col].
      length - the size of the rectangle in destination space as [rows, cols].
      Returns:
      a resampling object that covers the specified destination rectangle or null if the destination rectangle has no corresponding coordinates in the source space.