Skip To Content
ArcGIS Developers
Dashboard

Get Layer Definition

Description

License:

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

Note:

This resource is dependent on ArcGIS Data Reviewer’s ArcMap runtime-based server object extension (SOE). ArcGIS Enterprise 10.9.x, part of the ArcGIS 2021 releases, will be the last release of ArcGIS Enterprise to support services published from ArcMap.

To prepare for this change, Esri recommends that customers 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

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.

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))"
}