- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/map/export
- Methods:
POST
- Version Introduced:
- 10.6
Description
The export
operation exports a map image that represents the diagram. It is performed on a Diagram Map resource. The result of this operation is a map image that represents the diagram specified in the URL.
Request parameters
Parameter | Details |
---|---|
|
The name of the geodatabase version. Syntax: Example: |
|
The session moment. Syntax: Example: |
(Required) | The size (width * height) of the exported image in pixels. Syntax: Example: |
| The device resolution of the exported image (dots per inch). If the dpi is not specified, an image with a default dpi of 96 will be exported. Syntax: Example: |
| The spatial reference of the exported image. The spatial reference can be specified as either a well-known ID or as a spatial reference JSON object. If the imageSR is not specified, the image will be exported in the spatial reference of the map. |
| The spatial reference of the bbox. The spatial reference can be specified as either a well-known ID or as a spatial reference JSON object. If the bbox is not specified, the bbox is assumed to be in the spatial reference of the map. |
| The format of the exported image. The default format is Syntax: Example: |
| A boolean statement that determines whether to export the image background with a transparent color.
Syntax: Example: |
| Use this parameter to export a map image at a specific scale, with the map centered around the center of the specified bounding box (bbox). Syntax: Example: |
| Use this parameter to export a map image rotated at a specific angle, with the map centered around the center of the specified bounding box (bbox). It could be a positive or negative number. Syntax: Example: |
| The extent (bounding box) of the exported image. Unless the bboxSR parameter has been specified, the bbox is assumed to be in the spatial reference of the map. The bbox coordinates should always use a period as the decimal separator, even in countries where traditionally a comma is used. Syntax: Example: |
|
The response format. The default response format is html. Values: |
Example usage
Exporting the diagram map related to the DiagramTest1 diagram in version ABV1 into a .pdf
file; that is:
-
URL:
https
://myserver.esri.com/server/rest/services/ Naperville/ Network Diagram Server/diagrams/ Diagram Test1/map/export -
Parameters:
Use dark colors for code blocks Copy gdbVersion=ABV1 moment= size=600,600 dpi= imageSR= bboxSR= format=PDF transparent= mapScale= rotation= bbox= mapExtent= f=pjson
-
Sent URL (GET):
https
://myserver.esri.com/server/rest/services/ Naperville/ Network Diagram Server/diagrams/ Diagram Test1/map/export?gdb Version= AB V1&moment=&size=600%2 C600&dpi=&image S R=&bbox S R=&format= PD F&transparent=&map Scale=&rotation=&bbox=&map Extent=&f=pjson
JSON Response syntax
{
"href" : "< href >",
"width" : < width >,
"height" : < height >,
"extent" : {
<envelope>
},
"scale" : < scale >}
JSON Response example
{
"href": "https://myserver.esri.com/server/rest/directories/arcgisoutput/Naperville/_ags_mapfbd81ca42315478dae1e746ae4cc6283.pdf",
"width": 600,
"height": 600,
"extent": {
"xmin": 1034202.2703259999,
"ymin": 1871285.6644444999,
"xmax": 1035043.9497449999,
"ymax": 1872127.3438634998,
"spatialReference": {
"wkid": 102671,
"latestWkid": 3435
}
},
"scale": 1616.0244844798747
}