Identify Datasets

URL:
https://<root>/<serviceName>/MapServer/exts/MaritimeChartService/MapServer/identifyDatasets
Methods:
GETPOST
Required Capability:
Maritime Chart Service
Version Introduced:
10.9

Description

The use of this resource requires an ArcGIS GIS Server Standard or Advanced license and an ArcGIS Maritime server extension license.

The identifyDatasets operation is similar to identify (Map Service) but instead of only returning what is visible, it returns all datasets that meet the request.

Request parameters

All parameters are based on REST protocol.

ParameterDetails

userid

(Optional)

This is a required parameter when Entitlements is enabled.

Syntax

Use dark colors for code blocksCopy
1
<userid value>

Example

Use dark colors for code blocksCopy
1
userid=Marloe

mapExtent

(Required)

The extent or bounding box of the map currently being viewed. Unless the insr parameter has been specified, the map extent is assumed to be in the spatial reference of the map. The mapExtent and imageDisplay parameters are used by the server to determine the layers visible in the current extent. They are also used to calculate the distance on the map to search based on the tolerance in screen pixels.

Syntax

Use dark colors for code blocksCopy
1
<xmin>, <ymin>, <xmax>, <ymax>

Example

Use dark colors for code blocksCopy
1
mapExtent=6735890.245815396,-3861849.195392962,6855132.009940317,-3793743.8031908437

insr

(Optional)

The spatial reference of the input geometry. The spatial reference can be specified as either a well-known ID or as a spatial reference JSON object. If the insr is not specified, the geometry is assumed to be in the spatial reference of the map.

Syntax

Use dark colors for code blocksCopy
1
insr=<WKID>

Example

Use dark colors for code blocksCopy
1
insr=102100

All values in the crs.xml are supported. This file is stored at <ArcGIS Maritime server installation location>\MaritimeServer\<version number>\maritimechartservice\controlfiles\crs.xml .

imageDisplay

(Optional)

The screen image display parameters (width, height, and DPI) of the active map.

The mapExtent and the imageDisplay parameters are used by the server to determine the layers visible in the current extent. They are also used to calculate the distance on the map to search based on the tolerance in screen pixels. The default image display is 400, 400, 96.

Syntax

Use dark colors for code blocksCopy
1
<width>, <height>, <dpi>

Example

Use dark colors for code blocksCopy
1
imageDisplay=600,550,96

outsr

(Optional)

Syntax

Use dark colors for code blocksCopy
1
outsr=<WKID>

Example

Use dark colors for code blocksCopy
1
outsr=4326

All values in the crs.xml file are supported. This file is stored at <installation location>\MaritimeServer\<version number>\maritimechartservice\controlfiles\crs.xml .

returnGeometry

(Optional)

If true, the result set will include the geometries associated with each result. The default is true .

Values: true | false

geometryType

(Optional)

The type of geometry specified by the geometry parameter. The geometry type can be an envelope, point, line, or polygon.

Values: esriGeometryPoint| esriGeomteryPolyLine| esriGeomteryPolygon| esriGeometryEnvelope

geometry

(Optional)

The geometry to apply as the spatial filter. The structure of the geometry is the same as the structure of the JSON geometry objects returned by the ArcGIS REST API. In addition to the JSON structures for envelopes and points, you can specify the geometry with a comma-separated syntax.

Syntax

Use dark colors for code blocksCopy
1
geometryType=<geometryType>&geometry={geometry}

Example

Use dark colors for code blocksCopy
1
geometryType=esriGeometryEnvelope&geometry={xmin: -104, ymin: 35.6, xmax: -94.32, ymax:41}

full

(Optional)

If false, the result set will include a limited set of attributes associated with each result. This is the default.

If true, the result will include all attributes associated with each result.

The following is the subset of attributes returned when set to false:

  • visible

dsid: description

dsid: dsnm: description

dspm:cscl:value

dspm: cscl: description

Values: true | false

outfields

(Optional)

The list of fields to be included in the returned result set. This list is a comma-delimited list of field names. If used, this will override the full parameter equals true and only return the fields list in the outfields parameter. If the full parameter equals false, this parameter will be ignored.

Syntax

Use dark colors for code blocksCopy
1
outfields=<attribute1>,<attribute2>,<attribute3>

Example

Use dark colors for code blocksCopy
1
outfields=dsn,edtn,updn,isdt,uadt

forceCharts

(Optional)

This will override the default draw order and display the datasets in the order presented when they are within visible range based on their display scale. You can specify one or more datasets. The first dataset in the list is given the highest priority and will draw on top of the rest.

Syntax

Use dark colors for code blocksCopy
1
forceCharts=<dataset name >, <dataset name>, <dataset name>

Example

Use dark colors for code blocksCopy
1
forceCharts=GB4X0000

Response properties

PropertyDetails

format (f)

Specifies the response format. The default response format is html .

Values: json | html

Syntax:

f=json

Example usage

Example 1

The following is an example of the identifyDatasets operation using a map extent, input spatial reference (insr) of 102100, output spatial reference (outsr) of 4326, and full=true to return all fields. Default values are used for the rest of the parameters. The response is in PJSON format.

Use dark colors for code blocksCopy
1
https://nsdemo.esri.com/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/MapServer/identifyDatasets?userid=&mapextent=6773485.752574975%2C-3841201.258519241%2C6794639.700152868%2C-3825359.68440716&insr=102100&imagedisplay=&outsr=4326&returngeometry=&geometrytype=&geometry=&full=true&outfields=&forcecharts=&f=pjson

Example 2

The following is an example of the identifyDatasets operation using a map extent, input spatial reference of 102100, output spatial reference of 4326, and returnGeometry=false. Default values are used for the rest of the parameters. The response is in PJSON format.

Use dark colors for code blocksCopy
1
https://nsdemo.esri.com/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/MapServer/identifyDatasets?userid=&mapextent=6773485.752574975,-3841201.258519241,6794639.700152868,-3825359.68440716&insr=102100&imagedisplay=&outsr=4326&returngeometry=false&geometrytype=&geometry=&full=&outfields=&forcecharts=&f=pjson

JSON Response syntax example 1

The following is the syntax of a response for example 1, where full=true:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
{
 "spatialReference": {
 "wkid": <outsrValue>
},
 "geometryType": "esriGeometryPolygon", //only returns esriGeomteryPolygon
 "charts": [
 {
  "visible": <value>,
  "dsid": {
   "description": "<dsidDescription>",
   "expp": {
    "value": <subfieldValue>,
    "mappedValue": "<valueDescription>",
    "description": "<subfieldDescription>"
   },
   "intu": {
    "value": <subfieldValue>,
    "mappedValue": "<valueDescription>",
    "description":"<subfieldDescription>"
   },
   "dsnm": {
    "value": "<subfieldValue>",
    "description": "<subfieldDescription>"
   },
   "edtn": {
    "value": "<subfieldValue>",
    "description": "<subfieldDescription>"
   },
   "updn": {
    "value": "<subfieldValue>",
    "description" "<subfieldDescription>"
   },
   "isdt": {
    "value": "<subfieldValue>",
    "description": "<subfieldDescription>"
   },
   "sted": {
    "value": "<subfieldValue>",
    "description": "<subfieldDescription>"
   },
   "uadt": {
    "value": "<subfieldValue>",
    "description": "<subfieldDescription>"
		 },
   "prsp": {
    "value": <subfieldValue>,
    "mappedValue": "<valueDescription>",
    "description": "<subfieldDescription>"
   },
   "psdn": {
    "value": "",
    "description": "<subfieldDescription>"
   },
   "pred": {
    "value": "<subfieldValue>",
    "description": "<subfieldDescription>"
   },
   "prof": {
    "value": <subfieldValue>,
    "mappedValue": "<valueDescription>",
    "description": "<subfieldDescription>"
   },
   "agen": {
    "value": <subfieldValue>,
    "mappedValue": "<valueDescription>"
    "description": "<subfieldDescription>"
   },
   "comt": {
    "value": "",
    "description": "<subfieldDescription>"
   },
   "dssi": {
    "description": "<subfieldDescription>",
    "dstr": {
     "value": <subfieldValue>,
     "mappedValue": "<valueDescription>",
     "description": "<subfieldDescription>"
   },
   "aall": {
    "value": <subfieldValue>,
    "mappedValue": "<valueDescription>",
    "description": "<subfieldDescription>"
   },
   "nall": {
    "value": <subfieldValue>,
    "mappedValue": "<valueDescription>",
    "description": "<subfieldDescription>"
   },
   "nomr": {
    "value": <subfieldValue>,
    "description": "<subfieldDescription>"
   },
   "nocr": {
    "value": <subfieldValue>,
    "description": "<subfieldDescription>"
   },
   "nogr": {
    "value": <subfieldValue>,
    "description": "<subfieldDescription>"
   },
   "nolr": {
    "value": <subfieldValue>,
    "description": "<subfieldDescription>"
   },
   "noin": {
    "value": <subfieldValue>,
    "description": "<subfieldDescription>"
   },
   "nocn": {
    "value": <subfieldValue>,
    "description": "<subfieldDescription>"
   },
   "noed": {
    "value": <subfieldValue>,
    "description": "<subfieldDescription>"
   },
   "nofa": {
    "value": <subfieldValue>,
    "description": "<subfieldDescription>",
   },
   "dpsm": {
    "description": "<subfieldDescription>",
    "hdat": {
     "value": <subfieldValue>,
     "mappedValue": "<valueDescription>",
     "description": "<subfieldDescription>"
    },
    "vdat": {
     "value": <subfieldValue>,
     "mappedValue": "<valueDescription>",
     "description": "<subfieldDescription>"
    },
    "sdat": {
     "value": <subfieldValue>,
     "mappedValue": "<valueDescription>",
     "description": "<subfieldDescription>"
    },
    "cscl": {
     "value" <subfieldValue>,
     "description": "<subfieldDescription>"
    },
    "duni"
     "value": <subfieldValue>,
     "mappedValue": "<valueDescription>"
     "description": "<subfieldDescription>"
    },
    "huni"
     "value": <subfieldValue>,
     "mappedValue": "<valueDescription>"
     "description": "<subfieldDescription>"
    },
    "puni"
     "value": <subfieldValue>,
     "mappedValue": "<valueDescription>"
     "description": "<subfieldDescription>"
    },
    "coun"
     "value": <subfieldValue>,
     "mappedValue": "<valueDescription>"
     "description": "<subfieldDescription>"
    },
    "comf"
     "value": <subfieldValue>,
     "description": "<subfieldDescription>"
    },
    "somf"
     "value": <subfieldValue>,
     "description": "<subfieldDescription>"
   },
   "comt"
    "value": "",
    "description": "<subfieldDescription>"
   }
  },
  "permit expiration date": {    //Only appears for S-63 datasets
   "value": "subfieldValue>",
   "description": "<subfieldDescription>"
  },
  "geometry": {<geometry>}     //only when returnGeometry=true (default)
 }

JSON Reponse syntax example 2

The following is the syntax of a response for example 2, where full was set as false and returnGeometry was set as false.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
 "charts": [
  {
   "visible": <value>,
   "dsid": {
    "description": "<dsidDescription>",
    "dsnm": {
     "value": "<subfieldValue>",
     "description": "< subfieldDescription >"
    }
   },
   "dspm": {
    "description": "<dspmDescription>",
    "cscl": {
     "value": "<subfieldValue>",
     "description": "<subfieldDescription>"
    }
   }
  }
 ]
}

JSON Response example 1

The following is an example of a response for example 1, where full was set as true.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
{
 "spatialReference": {
  "wkid": 4326
 },
 "geometryType": "esriGeometryPolygon",
 "charts": [
  {
   "visible": false,
   "dsid": {
    "description": "Data Set Identification field",
    "expp": {
     "value": 1,
     "mappedValue": "New",
     "description": "Exchange purpose"
    },
    "intu": {
     "value": 5,
     "mappedValue": "Harbour",
     "description": "Intended usage"
    },
    "dsnm": {
     "value": "GB5X01NE.000",
     "description": "Data set name"
    },
    "edtn": {
     "value": "2",
     "description": "Edition number"
    },
    "updn": {
     "value": "0",
     "description": "Update number"
    },
    "isdt": {
     "value": "20070713",
     "description": "Issue date"
    },
    "sted": {
     "value": "03.1",
     "description": "Edition number of S-57"
    },
    "uadt": {
     "value": "20070713",
     "description": "Update application date"
    },
    "prsp": {
     "value": 1,
     "mappedValue": "ENC",
     "description": "Product specification"
    },
    "psdn": {
     "value": "",
     "description": "Product specification description"
    },
    "pred": {
     "value": "2.0",
     "description": "Product specification edition number"
    },
    "prof": {
     "value": 1,
     "mappedValue": "EN - ENC new",
     "description": "Application profile identification"
    },
    "agen": {
     "value": 540,
     "mappedValue": "GB",
     "description": "Producing agency"
    },
    "comt": {
     "value": "",
     "description": "Comment"
    }
   },
   "dssi": {
    "description": "Data Set Structure Information field",
    "dstr": {
     "value": 2,
     "mappedValue": "chain node",
     "description": "Data structure"
    },
    "aall": {
     "value": 1,
     "mappedValue": "level 1",
     "description": "ATTF lexical level"
    },
    "nall": {
     "value": 1,
     "mappedValue": "level 1",
     "description": "NATF lexical level"
    },
    "nomr": {
     "value": 6,
     "description": "Number of meta records"
    },
    "nocr": {
     "value": 0,
     "description": "Number of cartographic records"
    },
    "nogr": {
     "value": 292,
     "description": "Number of geo records"
    },
    "nolr": {
     "value": 2,
     "description": "Number of collection records"
    },
    "noin": {
     "value": 66,
     "description": "Number of isolated node records"
    },
    "nocn": {
     "value": 305,
     "description": "Number of connected node records"
    },
    "noed": {
     "value": 403,
     "description": "Number of edge records"
    },
    "nofa": {
     "value": 0,
     "description": "Number of face records"
    }
   },
   "dspm": {
    "description": "Data Set Parameter field",
    "hdat": {
     "value": 2,
     "mappedValue": "WGS 84",
     "description": "Horizontal geodetic datum"
    },
    "vdat": {
     "value": 17,
     "mappedValue": "Mean high water springs",
     "description": "Vertical datum"
    },
    "sdat": {
     "value": 23,
     "mappedValue": "Lowest astronomical tide",
     "description": "Sounding datum"
    },
    "cscl": {
     "value": 22000,
     "description": "Compilation scale of data"
    },
    "duni": {
     "value": 1,
     "mappedValue": "meters",
     "description": "Units of depth measurement"
    },
    "huni": {
     "value": 1,
     "mappedValue": "meters",
     "description": "Units of height measurement"
    },
    "puni": {
     "value": 1,
     "mappedValue": "meters",
     "description": "Units of positional accuracy"
    },
    "coun": {
     "value": 1,
     "mappedValue": "LL - Latitude/Longitude",
     "description": "Coordinate units"
    },
    "comf": {
     "value": 10000000,
     "description": "Coordinate multiplication factor"
    },
    "somf": {
     "value": 10,
     "description": "3-D sounding multiplication factor"
    },
    "comt": {
     "value": "",
     "description": "Comment"
    }
   },
   "geometry": {
    "rings": [
     [
      [
       60.9666667000,
       -32.5333333000
      ],
      [
       60.9666667000,
       -32.4563735000
      ],
      [
       60.9972840000,
       -32.4563735000
      ],
      [
       60.9972840000,
       -32.5333333000
      ],
      [
       60.9666667000,
       -32.5333333000
      ]
     ]
    ]
   }
  }

JSON Response example 2

The following is an example of a response for example 2, where full=false and returnGeometry=false.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
 "charts": [
  {
   "visible": false,
   "dsid": {
    "description": "Data Set Identification field",
    "dsnm": {
     "value": "GB5X01NE.000",
     "description": "Data set name"
    }
   },
   "dspm": {
    "description": "Data Set Parameter field",
    "cscl": {
     "value": 22000,
     "description": "Compilation scale of data"
    }
   }
  }
 ]
}

JSON error response syntax example

This example shows error response syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
{
 "error": {
  "code": <value>,
  "message": "<errorMessage>",
  "details": [
   "<detailedMessage>"
  ]
 }
}

JSON error response example

This example response shows error results:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
{
 "error": {
  "code": 400,
  "message": "Bad Request",
  "details": [
   "mapExtent must be specified"
  ]
 }
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.