Interface IRemapFilter
- Namespace
- ESRI.ArcGIS.DatasourcesRaster
- Assembly
- ESRI.Server.DatasourcesRaster.dll
Provides access to members that control a remap filter.
[Guid("2F07BE89-35D7-4CF3-BE0D-2F13E56948F0")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IRemapFilter
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
Properties
AllowUnmatched
Indicates if unmatched values should be passed through.
bool AllowUnmatched { get; set; }
Property Value
ClassCount
The number of remapped classes.
int ClassCount { get; }
Property Value
Methods
AddClass(double, double, double)
Adds a remap class that remaps values in [minvalue,maxvalue) to a give new value.
void AddClass(double minvalue, double maxvalue, double newvalue)
Parameters
AddNoDataClass(double, double)
Adds a remap class that remaps values in [minvalue,maxvalue) to NoData.
void AddNoDataClass(double minvalue, double maxvalue)
Parameters
Empty()
Removes all classes.
void Empty()
PutClass(int, double, double, double)
Puts a remap class at a given class index (starting from 0).
void PutClass(int Index, double minvalue, double maxvalue, double newvalue)
Parameters
QueryClass(int, out double, out double, out double)
Queries a remap class at a given class index (starting from 0).
void QueryClass(int Index, out double minvalue, out double maxvalue, out double newvalue)