com.esri.arcgis.datasourcesraster
Interface IRemapFilter

All Superinterfaces:
Serializable
All Known Implementing Classes:
RemapFilter

public interface IRemapFilter
extends Serializable

Provides access to members that control a remap filter.

Remarks

Provides access to the members of IRemapFilter. Similar to the reclass concept, this filters group raster pixel values into classes and creates a raster with those classes. Another benefit of this filter is that you can specify a range of values to be nodata and add it to nodataclass.

Sub remap(pRaster As iRaster, pOutWs As IWorkspace)
Dim pFilter As IRemapFilter
Set pFilter = New RemapFilter

'add classes
pFilter.AddClass 5, 20, 0
pFilter.AddClass 20, 50, 1
pFilter.AddClass 50, 100, 2
pFilter.AddClass 100, 120, 3
pFilter.AddClass 120, 150, 4
pFilter.AddClass 150, 256, 5

'add nodatdclass, all values between 0 and 5 (>= 0 and <5) will turn to nodata in the output
pFilter.AddNoDataClass 0, 5

Dim pSaveAs As ISaveAs
Set pSaveAs = pRaster

'set filter
Dim pFilterOp As IPixelOperation
Set pFilterOp = pRaster
Set pFilterOp.PixelFilter = pFilter

'save out
pSaveAs.saveas "Remap3.img", pOutWs, "IMAGINE Image"
End Sub

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void addClass(double minvalue, double maxvalue, double newvalue)
          Adds a remap class that remaps values in [minvalue,maxvalue) to a give new value.
 void addNoDataClass(double minvalue, double maxvalue)
          Adds a remap class that remaps values in [minvalue,maxvalue) to NoData.
 void empty()
          Removes all classes.
 int getClassCount()
          The number of remapped classes.
 boolean isAllowUnmatched()
          Indicates if unmatched values should be passed through.
 void putClass(int index, double minvalue, double maxvalue, double newvalue)
          Puts a remap class at a given class index (starting from 0).
 void queryClass(int index, double[] minvalue, double[] maxvalue, double[] newvalue)
          Queries a remap class at a given class index (starting from 0).
 void setAllowUnmatched(boolean pAllowUnmatched)
          Indicates if unmatched values should be passed through.
 

Method Detail

getClassCount

int getClassCount()
                  throws IOException,
                         AutomationException
The number of remapped classes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The pCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addClass

void addClass(double minvalue,
              double maxvalue,
              double newvalue)
              throws IOException,
                     AutomationException
Adds a remap class that remaps values in [minvalue,maxvalue) to a give new value.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
minvalue - The minvalue (in)
maxvalue - The maxvalue (in)
newvalue - The newvalue (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addNoDataClass

void addNoDataClass(double minvalue,
                    double maxvalue)
                    throws IOException,
                           AutomationException
Adds a remap class that remaps values in [minvalue,maxvalue) to NoData.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
minvalue - The minvalue (in)
maxvalue - The maxvalue (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryClass

void queryClass(int index,
                double[] minvalue,
                double[] maxvalue,
                double[] newvalue)
                throws IOException,
                       AutomationException
Queries a remap class at a given class index (starting from 0).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
minvalue - The minvalue (out: use single element array)
maxvalue - The maxvalue (out: use single element array)
newvalue - The newvalue (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

putClass

void putClass(int index,
              double minvalue,
              double maxvalue,
              double newvalue)
              throws IOException,
                     AutomationException
Puts a remap class at a given class index (starting from 0).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
minvalue - The minvalue (in)
maxvalue - The maxvalue (in)
newvalue - The newvalue (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

empty

void empty()
           throws IOException,
                  AutomationException
Removes all classes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isAllowUnmatched

boolean isAllowUnmatched()
                         throws IOException,
                                AutomationException
Indicates if unmatched values should be passed through.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The pAllowUnmatched
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAllowUnmatched

void setAllowUnmatched(boolean pAllowUnmatched)
                       throws IOException,
                              AutomationException
Indicates if unmatched values should be passed through.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
pAllowUnmatched - The pAllowUnmatched (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IPixelFilter