Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am comparing a raster with a constant value by raster calculator. Now I want to do this in a c# code.


Is there any process to do this kind of raster conditional comparison in .net?

share|improve this question

I think you're referring to the RasterConditionalOp CoClass

A mechanism for performing conditional operations on rasters.

You might want to bookmark the ArcObjects SDK site for future reference :)

share|improve this answer
RasterConditionalOp Coclass has some thing like that. But there is no argument that takes whereClause or does some work based on query. – Emi Oct 8 '12 at 8:52
In python arcpy gives a lot support for raster operation. raster calculator, different spatial analyst methods can be called from python. Can those work done by .net? – Emi Oct 8 '12 at 8:52
Please read the docs. It's on the link on my answer. – R.K. Oct 8 '12 at 9:12
up vote 1 down vote accepted

Finally I got my answer. I thought it would be good if I answer the question.

ILogicalOp Interface is the interface for raster comparison. This interface has all method for comparison.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.