Get Layer Definition

Description

LicenseLicense:

The ArcGIS Data Reviewer for Server extension is required in order to use this resource.

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.

NoteNote:

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

Description: 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

Description: The response format. The default response format is html.

Values: html | json

Example usage

Example 1: Return a map service query string where SEVERITY = 1.

http://localhost:6080/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))"
}

3/3/2017