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:
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.
Edit
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:
https://apps.fs.usda.gov/arcx/rest/services/RDW_Wildfire/MTBS_CONUS/MapServer/5/query?where=1%3D1&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=&having=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&historicMoment=&returnDistinctValues=false&resultOffset=&resultRecordCount=&queryByDistance=&returnExtentOnly=false&datumTransformation=¶meterValues=&rangeValues=&quantizationParameters=&featureEncoding=esriDefault&f=json