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

A friend and I are currently creating a pretty straight forward LINQ to ESRI library that sends HTTP queries to an ArcGIS MapServer and then parses the JSON response appropriately.

Everything is currently working beautifully except one thing; multiple Where statements. This seems like a simple syntax issue, but I can't seem to get it working, or find out if it's supported. I'm trying to do something like this.

Doesn't Work:


Does Work:


Also Works:


I have tried several different syntax versions, but can't seem to get a multiple Where statement to work. This is my primary source for breaking down these queries. If anyone knows the syntax to do this, or knows the source that says it's not possible.

share|improve this question
LINQ to ESRI sounds like a great idea, let us know how it goes. – Seth P. Mar 1 '11 at 6:30
up vote 8 down vote accepted

Stick to a single where parameter in your query string. Here's an example of a where clause hitting multiple fields:,objectid%27&f=html

share|improve this answer
+1 The doc says the where arg can be "Any legal SQL where clause operating on the fields in the layer is allowed." though I suspect there are legal SQL where clauses that aren't supported. – Kirk Kuykendall Feb 28 '11 at 23:38
I can see that happening, since ESRI does not support some clauses on simple IQueryFilters... – George Mar 1 '11 at 0:40

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.