I'm having trouble getting REST queries to work for any ESRI Map Service raster layers. Right now I've just been working with the query generator as part of the ESRI Service Directory. Here's are two Map Server examples:
No matter what my query looks like I get "Invalid or missing input parameters." If this were a vector Map Service I'd put
1=1 in the
WHERE clause and the service would return all the features contained in the layer. For raster layers in a Map Service I've tried every combination of inputs I can think of and always get the same "Invalid or missing input parameters.". If I specify JSON as the output format it shows up with error code 400 but I can't find anything on this either.
To be more specific I'm trying to figure out what is wrong with the REST query I'm trying to use, I know there are numerous other ways to access the information I'm looking for but to integrate this information with the rest of my workflow the data needs to come via an API call. I've tried removing fields and adding text or specifying a geometry, requesting only a count or IDS and I can't get anything to work. Here's an example of what one of my current queries looks like: