GET {serviceName}/MapServer/{layerId}/query
Operation ID: queryMapLayer
Auth: unknown
Description
Performs a query operation on a layer or table resource of a map service. The result of this operation is a feature set.
Parameters (18)
(string, query, optional, default: json)
Response format
Constraints: {'enum': ['json', 'html', 'geojson', 'pbf']}
(string, query, optional)
The geometry to apply as the spatial filter (JSON or simple syntax)
(string, query, optional)
The type of geometry specified by the geometry parameter
Constraints: {'enum': ['esriGeometryPoint', 'esriGeometryMultipoint', 'esriGeometryPolyline', 'esriGeometryPolygon', 'esriGeometryEnvelope']}
(string, query, optional)
Field names to group statistics by
(string, query, optional)
The spatial reference of the input geometry (WKID or JSON)
(integer, path, required)
Layer ID
(string, query, optional)
Comma-separated object IDs to query
(string, query, optional)
Field names to order results by
(string, query, optional)
Comma-separated list of fields to include in result set (use * for all)
(string, query, optional)
JSON array of field statistics definitions
(integer, query, optional)
Number of records to skip
(integer, query, optional)
Maximum number of records to return
(boolean, query, optional, default: False)
If true, the response only includes the count of features
(boolean, query, optional, default: True)
If true, the result includes the geometry
(boolean, query, optional, default: False)
If true, the response only includes an array of object IDs
(string, path, required)
Name of the map service
(string, query, optional)
The spatial relationship to be applied to the input geometry
Constraints: {'enum': ['esriSpatialRelIntersects', 'esriSpatialRelContains', 'esriSpatialRelCrosses', 'esriSpatialRelEnvelopeIntersects', 'esriSpatialRelIndexIntersects', 'esriSpatialRelOverlaps', 'esriSpatialRelTouches', 'esriSpatialRelWithin']}
(string, query, optional)
A WHERE clause for the query filter
No probe data for this endpoint yet.