AnsweredAssumed Answered

Con condition Expression arcobjects error

Question asked by Nadir_Hussain on Jan 13, 2015
Latest reply on Jan 14, 2015 by xander_bakker

Dear All.

Below is the code for con opertor in arcmap.

When i execute it gives me the error.Pls suggest and show to me where is something wrong.

 

rasModel = New RasterModelClass

rasModel.BindRaster(slopeRDN, "slope")

strExpression = "Con" + "(" + """" + "[slope]" + """" + ">" + "0" + "," + """" + "[slope]" + """" + "," + "0.000001" + ")"

  rasModel.Script = strExpression---error throw on this line

 

Error:010084 invalid command or expression.

thanks in advance

 

Outcomes