Class GridWrapper

java.lang.Object
org.openjump.core.rasterimage.sextante.rasterWrappers.GridWrapper
Direct Known Subclasses:
GridWrapperInterpolated, GridWrapperNotInterpolated

public abstract class GridWrapper extends Object
Abstract class for grip wrappers. Grid wrappers are used to get an easy way of accessing raster layers so different layers (i.e. with different extents and cellsizes) can be combined and analyzed together seamlessly, without having to worry about resampling or adjusting them.
Author:
Victor Olaya
  • Field Details

    • INTERPOLATION_NearestNeighbour

      public static final int INTERPOLATION_NearestNeighbour
      See Also:
    • INTERPOLATION_Bilinear

      public static final int INTERPOLATION_Bilinear
      See Also:
    • INTERPOLATION_InverseDistance

      public static final int INTERPOLATION_InverseDistance
      See Also:
    • INTERPOLATION_BicubicSpline

      public static final int INTERPOLATION_BicubicSpline
      See Also:
    • INTERPOLATION_BSpline

      public static final int INTERPOLATION_BSpline
      See Also:
    • m_Layer

      protected ISextanteRasterLayer m_Layer
    • m_iOffsetX

      protected int m_iOffsetX
    • m_iOffsetY

      protected int m_iOffsetY
    • m_WindowExtent

      protected GridExtent m_WindowExtent
  • Constructor Details

  • Method Details

    • getCellValueAsByte

      public abstract byte getCellValueAsByte(int x, int y)
    • getCellValueAsByte

      public abstract byte getCellValueAsByte(int x, int y, int band)
    • getCellValueAsShort

      public abstract short getCellValueAsShort(int x, int y)
    • getCellValueAsShort

      public abstract short getCellValueAsShort(int x, int y, int band)
    • getCellValueAsInt

      public abstract int getCellValueAsInt(int x, int y)
    • getCellValueAsInt

      public abstract int getCellValueAsInt(int x, int y, int band)
    • getCellValueAsFloat

      public abstract float getCellValueAsFloat(int x, int y)
    • getCellValueAsFloat

      public abstract float getCellValueAsFloat(int x, int y, int band)
    • getCellValueAsDouble

      public abstract double getCellValueAsDouble(int x, int y)
    • getCellValueAsDouble

      public abstract double getCellValueAsDouble(int x, int y, int band)
    • getCellValueInLayerCoords

      protected double getCellValueInLayerCoords(int x, int y, int band)
    • isNoDataValue

      public boolean isNoDataValue(double dValue)
    • getNoDataValue

      public double getNoDataValue()
    • getNY

      public int getNY()
    • getNX

      public int getNX()
    • getCellSize

      public Point2D.Double getCellSize()
    • getGridExtent

      public GridExtent getGridExtent()
    • isInLayer

      protected boolean isInLayer(int x, int y, int iBand)
    • getValueAt

      public double getValueAt(double xPosition, double yPosition, int band)
    • setInterpolationMethod

      public void setInterpolationMethod(int iMethod)