Select to view content in your preferred language

REST Queries for ESRI Map Service Raster Layers

625
1
09-10-2020 11:09 AM
AdamMcCurdy
New Contributor

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 are two Map Servers examples:

https://apps.fs.usda.gov/arcx/rest/services/RDW_Wildfire/MTBS_CONUS/MapServer/5/query 

https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/0/query

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. For reference here's an example of that the GET query looks like:

https://apps.fs.usda.gov/arcx/rest/services/RDW_Wildfire/MTBS_CONUS/MapServer/5/query?where=1%3D1&te... 

1 Reply
JamesParker3
New Contributor

Hey Adam did you ever figure this out? Having the same issue. I'd like to pass a bounding box in the query eventually. 

0 Kudos