Jump to content
Sign in to follow this  
Alexey

arcgis raster calculator error

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

try some thing like this

Con("grid1" < 5, 0, Con("grid1" < 6, 1, ("grid1" - 3) / 6.0))

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.