- URL:https://<ReviewerResults-url>/getLayerDefinition
- Required Capability:Data Reviewer Server
- Related Resources:Reviewer Results, Get Batch Run Details, Get Results, Update Lifecycle Status, Write Feature As Result, Write Result
- Version Introduced:10.1
Description
License:
The ArcGIS Data Reviewer extension is required to use this resource.
Note:
This resource is dependent on the ArcGIS Data Reviewer ArcMap runtime-based server object extension (SOE). ArcGIS Enterprise 10.9.x, part of the ArcGIS 2021 releases, is the last release of ArcGIS Enterprise to support services published from ArcMap.
Consider Data Reviewer capabilities enabled using ArcGIS Pro and integrated in the Validation service.
A utility operation that returns a where clause given a set of input filters. You can use this where clause as the definitionExpressionof the Data Reviewer map service.
Note:
Using the getLayerDefinition operation restricts the display of features in the Dynamic Layer to those that satisfy the criteria defined in the input filters.
Request parameters
Parameter | Details |
---|---|
filtersArray | An array of filters. A filter is a JSON structure. There are four types: singleAttributeFilter, rangeAttributeFilter, listAttributeFilter, spatialFilter. You can have one or more filters of different types in the filters array. If you use multiple filters, spatialFilters are applied before attribute filters. Multiple filters are evaluated using AND operands: Filter 1 AND Filter 2 AND Filter 3. JSON Structures: Filters |
f | The response format. The default response format is html. Values: html | json |
Example usage
Return a map service query string where SEVERITY = 1.
https://localhost:6443/arcgis/rest/services/reviewer/MapServer/exts/DataReviewerServer/ReviewerResults/getLayerDefinition?filtersArray={"filtersArray":[{singleAttributeFilter:[{fieldName:"SEVERITY",fieldValue:1}]}]}&f=pjson
JSON Response example
{
"whereClause": " ((REVTABLEMAIN.SEVERITY = 1))"
}