Overview
This topic discusses the JSON representation of Schematic Diagram Content objects.
A Schematic Diagram Content object is returned with the following properties:
name
: The diagram nameextent
: The diagram extent (envelope)layers
: An array of layer objects that compose the schematic diagramroot
: Optional; An array of schematic feature identifiers (Long) that identify schematic root nodes in the diagram.Nodes end
: Optional; An array of schematic feature identifiers (Long) that identify schematic end nodes in the diagram.Nodes
{
"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 corresponds 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
}
Layer object definition
Each layer item in the layers array corresponds to a schematic feature class associated with the diagram template on which the diagram is based.
All the schematic feature classes that are associated with the diagram template are detailed in this layers array, including those for which no schematic features are contained in the diagram.
"layers": [
{
"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 corresponds 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
}
]
Property | Details |
---|---|
| The
|
| ID of the schematic feature class related to the feature layer (Long). |
| Array of the schematic feature identifiers (Long) that are currently selected in the diagram (optional). |