Load Diagram

URL:
https://<root>/<serviceName>/MapServer/exts/SchematicServer/templates/<tempID>/loadDiagram
Methods:
POST
Version Introduced:
10.1

Description

The loadDiagram operation is performed on a Schematic Diagram Template resource. The result of this operation is a Schematic Diagram Content Object.

It is used to load a schematic diagram in memory.

You can provide arguments to the loadDiagram operation as query parameters defined in the parameters table below.

Request Parameters

ParameterDetails

f

The response format. The default response format is html .

Values: html | json

name

(Required)

The diagram name.

Example: name=ESTANCIA

Example Usage

Example 1: loadDiagram operation on the GWC_CorinthNorth diagram based on the WithCounty diagram template (id=3) under the S1_Schematics sample Schematics service

Use dark colors for code blocksCopy
1
https://myserver.esri.com/arcgis/rest/services/S1_Schematics/MapServer/exts/SchematicsServer/templates/3/loadDiagram?name=GWC_CorinthNorth&f=pjson

Example 2: loadDiagram operation on the ARACAIU diagram based on the InsideGasPlants diagram template (id=0) under the S2_InternalPlants sample Schematics service

Use dark colors for code blocksCopy
1
https://myserver.esri.com/arcgis/rest/services/S2_InternalPlants/MapServer/exts/SchematicsServer/templates/0/loadDiagram?name=ARACAIU&f=pjson

JSON Response Syntax

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
{
  "name" : "<DiagramName>",
  "extent" : <envelope>,
  "layers" : [
  //First feature layer
     {
        "featureSet": {
           "displayFieldName": "",
           "fieldAliases": {"<field1>": "<aliasField1>", ..., "<fieldN>": "<aliasFieldN>"},
           "geometryType": "esriGeometryPoint" | "esriGeometryPolyline" | "esriGeometryPolygon",
           "spatialReference": <spatialReference>,
           "fields": [
             {"name": "<field1Name>", "type": <field1Type>, "alias": "<field1Alias>"},
             ...,
             {"name": "<fieldNName>", "type": <fieldNType>, "alias": "<fieldNAlias>"},
           ],
           "features": [<schFeature1>, ..., <schFeatureN>]  //List of the schematic feature objects for this feature layer that are contained in the diagram
        },
        "featureClassID": <featureClassID1>, //This correponds to the OBJECTID of the schematic feature class related to the layer
        "selectedIDs" : ["<schFeature1_ID>", ..., "<schFeatureM_ID>"] //List of the SCHEMATICTID for each schematic feature currently selected in this layer
     },
  //Next feature layer
     {
        ...
     }
  ],
  "rootNodes" : ["<schFeature1_ID>", ..., "<schFeatureM_ID>"], //List of the SCHEMATICTID of the root schematic feature nodes
  "endNodes" : ["<schFeature1_ID>", ..., "<schFeatureK_ID>"] //List of the SCHEMATICTID of the end schematic feature nodes
}

JSON Response Example

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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
//This sample diagram content corresponds to a small diagram containing only three schematic feature nodes and two schematic feature links
{
 "name": "SmallDiagram",
 "extent": {
  "xmin": -20188492.5143,
  "ymin": 13197754.015000001,
  "xmax": -15695315.069899999,
  "ymax": 18282139.017800003,
  "spatialReference": {"wkid": 102585, "latestWkid": 102585}
 },
 "layers": [
 //The first layer corresponds to the only link schematic feature class associated with the schematic diagram template on which this diagram is based
  {
   "featureSet": {
    "displayFieldName": "",
    "fieldAliases": {
     //The 21 first fields below are always the same for a layer which references a link schematic feature class
     "ID": "ID",
     "DIAGRAMCLASSID": "DIAGRAMCLASSID",
     "DIAGRAMOBJECTID": "DIAGRAMOBJECTID",
     "SCHEMATICTID": "SCHEMATICTID",
     "ISINITIAL": "ISINITIAL",
     "ISDISPLAYED": "ISDISPLAYED",
     "RELATIONOBJECTID": "RELATIONOBJECTID",
     "RELATIONCLASSID": "RELATIONCLASSID",
     "DATASOURCEID": "DATASOURCEID",
     "UCID": "UCID",
     "UOID": "UOID",
     "USID": "USID",
     "UPDATESTATUS": "UPDATESTATUS",
     "SUBTYPE": "SUBTYPE",
     "PROPERTYSET": "PROPERTYSET",
     "FROMTID": "FROMTID",
     "TOTID": "TOTID",
     "FROMPORT": "FROMPORT",
     "TOPORT": "TOPORT",
     "FLOWDIRECTION": "FLOWDIRECTION",
     "UGUID": "UGUID",
     //The next Category field corresponds to a custom attribute for this link schematic feature class
     "Category": "Category",
     "SHAPE.len": "SHAPE.len"
    },
    "geometryType": "esriGeometryPolyline",
    "spatialReference": {"wkid": 102585, "latestWkid": 102585},
    "fields": [
     {"name": "ID", "type": "esriFieldTypeOID", "alias": "ID"},
     {"name": "DIAGRAMCLASSID", "type": "esriFieldTypeInteger", "alias": "DIAGRAMCLASSID"},
     {"name": "DIAGRAMOBJECTID", "type": "esriFieldTypeInteger", "alias": "DIAGRAMOBJECTID"},
     {"name": "SCHEMATICTID", "type": "esriFieldTypeString", "alias": "SCHEMATICTID", "length": 128},
     {"name": "ISINITIAL", "type": "esriFieldTypeInteger", "alias": "ISINITIAL"},
     {"name": "ISDISPLAYED", "type": "esriFieldTypeInteger", "alias": "ISDISPLAYED"},
     {"name": "RELATIONOBJECTID", "type": "esriFieldTypeInteger", "alias": "RELATIONOBJECTID"},
     {"name": "RELATIONCLASSID", "type": "esriFieldTypeInteger", "alias": "RELATIONCLASSID"},
     {"name": "DATASOURCEID", "type": "esriFieldTypeInteger", "alias": "DATASOURCEID"},
     {"name": "UCID", "type": "esriFieldTypeInteger", "alias": "UCID"},
     {"name": "UOID", "type": "esriFieldTypeInteger", "alias": "UOID"},
     {"name": "USID", "type": "esriFieldTypeInteger", "alias": "USID"},
     {"name": "UPDATESTATUS", "type": "esriFieldTypeInteger", "alias": "UPDATESTATUS"},
     {"name": "SUBTYPE", "type": "esriFieldTypeInteger", "alias": "SUBTYPE"},
     {"name": "PROPERTYSET", "type": "esriFieldTypeBlob", "alias": "PROPERTYSET"},
     {"name": "FROMTID", "type": "esriFieldTypeString", "alias": "FROMTID", "length": 128},
     {"name": "TOTID", "type": "esriFieldTypeString", "alias": "TOTID", "length": 128},
     {"name": "FROMPORT", "type": "esriFieldTypeInteger", "alias": "FROMPORT"},
     {"name": "TOPORT", "type": "esriFieldTypeInteger", "alias": "TOPORT"},
     {"name": "FLOWDIRECTION", "type": "esriFieldTypeInteger", "alias": "FLOWDIRECTION"},
     {"name": "UGUID", "type": "esriFieldTypeGUID", "alias": "UGUID", "length": 38},
     {"name": "Category", "type": "esriFieldTypeString", "alias": "Category", "length": 50},
     {"name": "SHAPE.len", "type": "esriFieldTypeDouble", "alias": "SHAPE.len"}
    ],
    //The next Features section details the two schematic feature links based on this layer that are contained in the sample diagram
    "features": [
     {
      "attributes": {
       "ID": 1,
       "DIAGRAMCLASSID": 948,
       "DIAGRAMOBJECTID": 2,
       "SCHEMATICTID": "1299-5-0",
       "ISINITIAL": -1,
       "ISDISPLAYED": -1,
       "RELATIONOBJECTID": -2,
       "RELATIONCLASSID": -2,
       "DATASOURCEID": 1,
       "UCID": 1299,
       "UOID": 5,
       "USID": 0,
       "UPDATESTATUS": 1,
       "SUBTYPE": 0,
       "FROMTID": "1296-38-0",
       "TOTID": "1296-41-0",
       "FROMPORT": 0,
       "TOPORT": 0,
       "FLOWDIRECTION": 1,
       "UGUID": null,
       "Category": "Big",
       "SHAPE.len": 0
      },
      "geometry": {
       "paths": [[[-15695315.069899999, 15956722.621100001],[-20188492.5143, 18282139.017800003]]],
       "spatialReference": {"wkid": 102585, "latestWkid": 102585}
      }
     },
     {
      "attributes": {
       "ID": 2,
       "DIAGRAMCLASSID": 948,
       "DIAGRAMOBJECTID": 2,
       "SCHEMATICTID": "1299-6-0",
       "ISINITIAL": -1,
       "ISDISPLAYED": -1,
       "RELATIONOBJECTID": -2,
       "RELATIONCLASSID": -2,
       "DATASOURCEID": 1,
       "UCID": 1299,
       "UOID": 6,
       "USID": 0,
       "UPDATESTATUS": 1,
       "SUBTYPE": 0,
       "FROMTID": "1296-38-0",
       "TOTID": "1296-40-0",
       "FROMPORT": 0,
       "TOPORT": 0,
       "FLOWDIRECTION": 1,
       "UGUID": null,
       "Category": "Small",
       "SHAPE.len": 0
      },
      "geometry": {
       "paths": [[[-15695315.069899999, 15956722.621100001],[-18257214.489999998,13197754.015000001]]],
       "spatialReference": {"wkid": 102585, "latestWkid": 102585}
      }
     }
    ]
   },
   //The following featureClassID item identifies the ID of the link schematic feature class related to the layer
   "featureClassID": 947
  },
  {
   "featureSet": {
    "displayFieldName": "",
    "fieldAliases": {
     //The 19 first fields below are always the same for a layer which references a node schematic feature class
     "ID": "ID",
     "DIAGRAMCLASSID": "DIAGRAMCLASSID",
     "DIAGRAMOBJECTID": "DIAGRAMOBJECTID",
     "SCHEMATICTID": "SCHEMATICTID",
     "ISINITIAL": "ISINITIAL",
     "ISDISPLAYED": "ISDISPLAYED",
     "RELATIONOBJECTID": "RELATIONOBJECTID",
     "RELATIONCLASSID": "RELATIONCLASSID",
     "DATASOURCEID": "DATASOURCEID",
     "UCID": "UCID",
     "UOID": "UOID",
     "USID": "USID",
     "UPDATESTATUS": "UPDATESTATUS",
     "SUBTYPE": "SUBTYPE",
     "PROPERTYSET": "PROPERTYSET",
     "INITIALX": "INITIALX",
     "INITIALY": "INITIALY",
     "ROTATION": "ROTATION",
     "UGUID": "UGUID",
     //The next Type and Name fields correspond to two custom attributes for this node schematic feature class
     "Type": "Type",
     "Name": "Name"
    },
    "geometryType": "esriGeometryPoint",
    "spatialReference": {"wkid": 102585, "latestWkid": 102585},
    "fields": [
     {"name": "ID", "type": "esriFieldTypeOID", "alias": "ID"},
     {"name": "DIAGRAMCLASSID", "type": "esriFieldTypeInteger", "alias": "DIAGRAMCLASSID"},
     {"name": "DIAGRAMOBJECTID", "type": "esriFieldTypeInteger", "alias": "DIAGRAMOBJECTID"},
     {"name": "SCHEMATICTID", "type": "esriFieldTypeString", "alias": "SCHEMATICTID", "length": 128},
     {"name": "ISINITIAL", "type": "esriFieldTypeInteger", "alias": "ISINITIAL"},
     {"name": "ISDISPLAYED", "type": "esriFieldTypeInteger", "alias": "ISDISPLAYED"},
     {"name": "RELATIONOBJECTID", "type": "esriFieldTypeInteger", "alias": "RELATIONOBJECTID"},
     {"name": "RELATIONCLASSID", "type": "esriFieldTypeInteger", "alias": "RELATIONCLASSID"},
     {"name": "DATASOURCEID", "type": "esriFieldTypeInteger", "alias": "DATASOURCEID"},
     {"name": "UCID", "type": "esriFieldTypeInteger", "alias": "UCID"},
     {"name": "UOID", "type": "esriFieldTypeInteger", "alias": "UOID"},
     {"name": "USID", "type": "esriFieldTypeInteger", "alias": "USID"},
     {"name": "UPDATESTATUS", "type": "esriFieldTypeInteger", "alias": "UPDATESTATUS"},
     {"name": "SUBTYPE", "type": "esriFieldTypeInteger", "alias": "SUBTYPE"},
     {"name": "PROPERTYSET", "type": "esriFieldTypeBlob", "alias": "PROPERTYSET"},
     {"name": "INITIALX", "type": "esriFieldTypeDouble", "alias": "INITIALX"},
     {"name": "INITIALY", "type": "esriFieldTypeDouble", "alias": "INITIALY"},
     {"name": "ROTATION", "type": "esriFieldTypeDouble", "alias": "ROTATION"},
     {"name": "UGUID", "type": "esriFieldTypeGUID", "alias": "UGUID", "length": 38},
     {"name": "Type", "type": "esriFieldTypeString", "alias": "Type", "length": 1},
     {"name": "Name", "type": "esriFieldTypeString", "alias": "Name", "length": 50}
    ],
    //The next Features section details the three schematic feature nodes based on this layer that are contained in the sample diagram
    "features": [
     {
      "attributes": {
       "ID": 1,
       "DIAGRAMCLASSID": 948,
       "DIAGRAMOBJECTID": 2,
       "SCHEMATICTID": "1296-38-0",
       "ISINITIAL": -1,
       "ISDISPLAYED": -1,
       "RELATIONOBJECTID": -2,
       "RELATIONCLASSID": -2,
       "DATASOURCEID": 1,
       "UCID": 1296,
       "UOID": 38,
       "USID": 0,
       "UPDATESTATUS": 1,
       "SUBTYPE": 0,
       "INITIALX": -15695315.0699,
       "INITIALY": 15956722.621099999,
       "ROTATION": 0,
       "UGUID": null,
       "Type": "E",
       "Name": "ROMY"
      },
      "geometry": {
       "x": -15695315.069899999,
       "y": 15956722.621100001,
       "spatialReference": {"wkid": 102585, "latestWkid": 102585}
      }
     },
     {
      "attributes": {
       "ID": 2,
       "DIAGRAMCLASSID": 948,
       "DIAGRAMOBJECTID": 2,
       "SCHEMATICTID": "1296-40-0",
       "ISINITIAL": -1,
       "ISDISPLAYED": -1,
       "RELATIONOBJECTID": -2,
       "RELATIONCLASSID": -2,
       "DATASOURCEID": 1,
       "UCID": 1296,
       "UOID": 40,
       "USID": 0,
       "UPDATESTATUS": 1,
       "SUBTYPE": 0,
       "INITIALX": -18257214.489999998,
       "INITIALY": 13197754.015000001,
       "ROTATION": 0,
       "UGUID": null,
       "Type": "D",
       "Name": "TAGA"
      },
      "geometry": {
       "x": -18257214.489999998,
       "y": 13197754.015000001,
       "spatialReference": {"wkid": 102585, "latestWkid": 102585}
      }
     },
     {
      "attributes": {
       "ID": 3,
       "DIAGRAMCLASSID": 948,
       "DIAGRAMOBJECTID": 2,
       "SCHEMATICTID": "1296-41-0",
       "ISINITIAL": -1,
       "ISDISPLAYED": -1,
       "RELATIONOBJECTID": -2,
       "RELATIONCLASSID": -2,
       "DATASOURCEID": 1,
       "UCID": 1296,
       "UOID": 41,
       "USID": 0,
       "UPDATESTATUS": 1,
       "SUBTYPE": 0,
       "INITIALX": -20188492.5143,
       "INITIALY": 18282139.0178,
       "ROTATION": 0,
       "UGUID": null,
       "Type": "A",
       "Name": "UMOL"
      },
      "geometry": {
       "x": -20188492.5143,
       "y": 18282139.017800003,
       "spatialReference": {"wkid": 102585, "latestWkid": 102585}
      }
     }
    ]
   },
   //The following featureClassID item identifies the ID of the node schematic feature class related to the layer
   "featureClassID": 946
  }
 ]
}

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