- URL:
- https://<root>/<serviceName>/MapServer/exts/SchematicServer/templates/<tempID>/generateDiagram
- Methods:
POST
- Version Introduced:
- 10.1
Description
The generate
operation creates a new Schematic Diagram resource. It is performed on a Schematic Diagram Template resource. The result of this operation is a Schematic Diagram Information Object. It is used to generate a new diagram.
You can provide arguments to the generate
operation as query parameters defined in the parameters table below.
Request parameters
Parameter | Details |
---|---|
| Description: The response format. The default response format is html. Values: html | json |
| Required Description: The diagram name. Syntax: Example: |
| Required Description: The diagram creator. Syntax: Example: |
| Description: The ID of the folder in which the generated diagram will be stored. This parameter is optional. If it is not specified, the generated diagram is stored at the schematic dataset root. Syntax: Example: |
| Required Description: The context for the builder which updates the diagram. This parameter syntax depends on the diagram builder:
|
JSON Response syntax
{
"name": "<diagramName>",
"id": "<diagramId>",
"templateIdentifier": "<templateIdentifier>",
"templateObjectID": <templateObjectID>,
"schematicLayerIdentifier": <schematicLayerIdentifier>,
"folderObjectID": <folderObjectID>,
"folderIdentifier": "<folderIdentifier>",
"objectID": <objectID>,
"createdBy": "<diagramCreator>",
"lastModificationBy": "<diagramLastEditor>",
"lastUpdateBy": "<diagramLastUpdator>",
"creationDate": "<diagramCreationDate>",
"lastModificationDate": "<diagramModificationDate>",
"lastUpdateDate": "<diagramLastUpdateDate>",
"lockedBy": "<diagramLastLocker>",
"version": "<version>",
"extent": <envelope>,
"rootNodes": [
"<rootNode1>",
...,
"<rootNodeN>"
],
"endNodes": [
"<endNode1>",
...,
"<endNodeK>"
]
}
JSON Response example
{
"name": "DiagramFrom_pug_PUG_gas_plants_ID3",
"id": "0-5",
"templateIdentifier": "0",
"templateObjectID": 892,
"schematicLayerIdentifier": 0,
"folderObjectID": -2,
"folderIdentifier": "-2",
"objectID": 5,
"createdBy": "NCA3885",
"lastModificationBy": "NCA3885",
"lastUpdateBy": "",
"creationDate": "05/13/11 14:13:57",
"lastModificationDate": "05/13/11 14:13:57",
"lastUpdateDate": "",
"lockedBy": "",
"version": "sde.DEFAULT",
"extent": {
"xmin": -37.342619999999989,
"ymin": -11.398460000000886,
"xmax": -37.342179999999097,
"ymax": -11.398019999999997,
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
}
}
}