dbanta_ncs

ESRI Raster Remap with Doubles

Discussion created by dbanta_ncs on Jul 24, 2013
I have a requirement where the user would like to see the output value in a raster as a double.

This is my current code-

INumberRemap remap = new NumberRemapClass();
remap.MapRange(range.MinValue, range.MaxValue, (int)Math.Round(range.Value));
IReclassOp op = new RasterReclassOpClass();
output = op.ReclassByRemap(_source, remap, _mapNoData);


You can see that I have a value as a double (it is representing cost to the user), but INumberRemap.MapRange only accepts an int (currently I am rounding the double). I searched the documentation and could not find a good alternative. Is there a way to remap a range to a double value?

Outcomes