Alexey Posted May 4, 2012 Report Share Posted May 4, 2012 Hi, I'm new to this board so i dont really know if im right in this thread or if you need more information. I have to classify a rasterlayer of rivers. So i use the Raster Calculator with the code: Con("riverclass1", 2,"riverclass1","(Value >= 40000) & (Value < 300000)") But it gives me the Error: invalid sql statement used. I only learned java so i dont really know the python syntax. So is the Syntax wrong or some other stuff broke? Thank you Quote Link to comment Share on other sites More sharing options...
Lurker Posted May 4, 2012 Report Share Posted May 4, 2012 hem, try to define data in this case riverclass1 and the condition you want to classified and define the class after it some example of this Con function : http://forums.arcgis.com/threads/21664-con-function-use-in-the-raster-calculator and http://forums.arcgis.com/threads/14493-Raster-Calculator-CON-statement hope it help Quote Link to comment Share on other sites More sharing options...
3dbu Posted May 4, 2012 Report Share Posted May 4, 2012 try some thing like this Con("grid1" < 5, 0, Con("grid1" < 6, 1, ("grid1" - 3) / 6.0)) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.