def ValueRange_RasterReclassificationTool(): """ """ gisMgr = app.Modules.Get('GIS Manager'); inputRaster = gisMgr.RasterList.Fetch('/MyRaster') mapping=dict([('1 - 2', '1.5'), ('2 - 3', '2.5')]) tool = app.Tools.CreateNew('Reclassification') tool.InputItems.Add(inputRaster) tool.KeepUnmappedValues = True tool.Mapping = mapping tool.MappingType = MappingType.ValueRange tool.Execute() gisMgr.RasterList.Add(tool.OutputItems) def SingleValue_RasterReclassificationTool(): """ """ gisMgr = app.Modules.Get('GIS Manager'); inputRaster = gisMgr.RasterList.Fetch('/MyRaster') mapping=dict([('1', '1.5'), ('2', '2.5'), ('3', '3.5')]) tool = app.Tools.CreateNew('Reclassification') tool.InputItems.Add(inputRaster) tool.KeepUnmappedValues = True tool.Mapping = mapping tool.MappingType = MappingType.SingleValue tool.Execute() gisMgr.RasterList.Add(tool.OutputItems)