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.

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

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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close