Get Layer Definition

URL:
https://<ReviewerResults-url>/getLayerDefinition
Methods:
GET
Required Capability:
Data Reviewer Server
Version Introduced:
10.1

Description

A utility operation that returns a where clause given a set of input filters. You can use this where clause as the definitionExpression of the Data Reviewer map service.

Request parameters

ParameterDetails

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.

Use dark colors for code blocksCopy
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

Use dark colors for code blocksCopy
1
2
3
{
 "whereClause": "  ((REVTABLEMAIN.SEVERITY = 1))"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.