Get Layer Definition



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 definitionExpressionof the Data Reviewer map service.


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


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:



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.


JSON response example

 "whereClause": "  ((REVTABLEMAIN.SEVERITY = 1))"