- URL:
- https://<root>/services/serviceName/VideoServer/layerId/query
- Methods:
POST- Version Introduced:
- 12.0
Description
The query operation queries a video service layer and returns its spatial information.
Request parameters
| Parameter | Details |
|---|---|
(Required) | The service name must be input in the form of a string. |
(Optional) | The ID of the layer specifically targeted for the query. |
(Required) | The type of geometry specified by the geometry parameter. The geometry type can be an envelope, a point, a line, or a polygon. The default geometry type is an envelope. Values: |
(Required) | The geometry to apply as the spatial filter for a query. The different geometry object types include Example JSON syntax for the |
(Optional) | The spatial operation to test. The |
(Optional) | Time range within the on-demand video layer to search for intersections with the provided geometry. The format is |
(Optional) | The output format for this operation. The default value is Values: |
(Required) | Users interacting programmatically with this endpoint must generate a token that must be included as a request parameter. A token can be obtained using the Generate Token operation. |
Response properties
| Property | Details |
|---|---|
| The results of the query, outputting four additional properties: |
| The duration of time in which the geometry input in the query request is available in the chosen service. |
| The offset of the geometry provided in the query. |
| The start time at which the requested geometry appears, written out in a Unix timestamp in milliseconds. |
| The start time at which the requested geometry appears, written out in a standard format. |
Example usage
The following is a sample POST request for the query operation:
POST /arcgis/rest/services/sampleService/VideoServer/01/query HTTP/1.1
Host: organization.example.com:21443
Content-Type: application/x-www-form-urlencoded
Content-Length: []
geometry={
"rings":
[
[
[ -123.137633, 49.262336],
[ -122.423569, 30.612065],
[-72.337101, 18.545215],
[-51.793489, 64.188779],
[-123.137633, 49.262336]
]
]
}&geometryType=esriGeometryPolygon&spatialRel=esriSpatialRelIntersects&f=pjsonJSON Response syntax
{
{"results": [{
"duration": <length of time>,
"offset": <offset integer>,
"startTime": <startTime>,
"startTimeAsDate": "<date in DAY|MONTH|DATE|TIME|TIMEZONE|YEAR format>"
}]}
}JSON Response example
{"results": [{
"duration": 83200,
"offset": 0,
"startTime": 1348087244105,
"startTimeAsDate": "Wed Sep 19 16:40:44 EDT 2012"
}]}