Schematic Export

URL:
https://<root>/<serviceName>/MapServer/exts/SchematicServer/diagrams/<diagID>/map/export
Methods:
POST
Version Introduced:
10.1

Description

The export operation exports a map image that represents a schematic diagram. It is performed on a Schematic Diagram Map resource. The result of this operation is a map image that represents the <diagId> diagram specified in the URL.

You can provide arguments to the export operation as query parameters. For a schematic diagram map, all of the export operation parameters are optional; moreover, the layers and layersDef parameters will always be ignored. The parameter details are provided in the parameters table below.

Request parameters

ParameterDetails

f

The response format. The default response format is html . If the format is image , the image bytes are directly streamed to the client.

Values: html | json | image | kmz

bbox

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.

Syntax: bbox=<xmin>, <ymin>, <xmax>, <ymax>

Example: bbox=-104,35.6,-94.32,41

The bbox coordinates should always use a period as the decimal separator even in countries where traditionally a comma is used.

size

The size (width * height) of the exported image in pixels. If the size is not specified, an image with a default size of 400 * 400 will be exported.

Syntax: size=<width>, <height>

Example: size=600,550

dpi

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.

Example: dpi=200

imageSR

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.

bboxSR

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 bboxSR is not specified, the bbox is assumed to be in the spatial reference of the map.

format

The format of the exported image. The default format is png .

Values: png | png8 | png24 | jpg | pdf | bmp | gif | svg | png32

layerDefs

Parameter kept for compatibility reason with the standard Export Map operation, but this parameter is always ignored when the export is performed on a schematic diagram map.

layers

Parameter kept for compatibility reason with the standard Export Map operation, but this parameter is always ignored when the export is performed on a schematic diagram map.

transparent

If true, the image will be exported with the background color of the map set as its transparent color. The default is false. Only the png and gif formats support transparency. Internet Explorer 6 does not display transparency correctly for png24 image formats.

Values: true | false

time

The time instant or the time extent of the exported map image.

Time instant

Syntax:time=<timeInstant>

Example: time=1199145600000 (1 Jan 2008 00:00:00 GMT)

Time extent

Syntax: time=<startTime>, <endTime>

Example: time=1199145600000, 1230768000000 (1 Jan 2008 00:00:00 GMT to 1 Jan 2009 00:00:00 GMT)

A null value specified for start time or end time will represent infinity for start or end time respectively.

layerTimeOptions

The time options per layer. Users can indicate whether or not the layer should use the time extent specified by the time parameter or not, whether to draw the layer features cumulatively or not and the time offsets for the layer.

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
layerTimeOptions=
{
  "<layerId1>" : {
    //If true, use the time extent specified by the time parameter
    "useTime" : < true | false >,
    //If true, draw all the features from the beginning of time for that data
    "timeDataCumulative" : < true | false >,
    //Time offset for this layer so that it can be overlaid on the top of a previous or future time period
    "timeOffset" : <timeOffset1>,
    "timeOffsetUnits" : "<esriTimeUnitsCenturies | esriTimeUnitsDays | esriTimeUnitsDecades |
                             esriTimeUnitsHours | esriTimeUnitsMilliseconds | esriTimeUnitsMinutes |
                             esriTimeUnitsMonths | esriTimeUnitsSeconds | esriTimeUnitsWeeks | esriTimeUnitsYears |
                             esriTimeUnitsUnknown>"
  },
  "<layerId2>" : {
    "useTime" : < true | false >,
    "timeDataCumulative" : < true | false >,
    "timeOffsetOffset" : <timeOffset2>,
    "timeOffsetUnits" : "<timeOffsetUnits2>"
  }
}

Example:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
layerTimeOptions=
{
  "0" : {
    "useTime" : true,
    "timeDataCumulative" : false,
    "timeOffset" : 1,
    "timeOffsetUnits" : "esriTimeUnitsYears"
  },
  "3" : {
    "useTime" : false
  }
}

dynamicLayers

Use dynamicLayers parameter to modify the layer drawing order, change layer renderer, define joins, change layer source version for this request. New layers (dataLayer ) can also be added to the dynamicLayers based on the map service registered workspaces.

The order of dynamicLayers array defines the layer drawing order. The first element of the dynamicLayers array draws on top of all other layers.

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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
dynamicLayers=
[
  {
    "id": <layerOrTableId>,
    "source": <layer source>,
    "definitionExpression": "<definitionExpression>",
    "drawingInfo":
    {
      "renderer": <renderer>,
      "transparency": <transparency>,
      "scaleSymbols": <true | false >
    },
    "layerTimeOptions":
    {
      "useTime" : <true | false>,
      "timeDataCumulative" : <true | false>,
      "timeOffset" : <timeOffset>,
      "timeOffsetUnits" : "<esriTimeUnitsCenturies | esriTimeUnitsDays | esriTimeUnitsDecades |
                             esriTimeUnitsHours | esriTimeUnitsMilliseconds | esriTimeUnitsMinutes |
                             esriTimeUnitsMonths | esriTimeUnitsSeconds | esriTimeUnitsWeeks | esriTimeUnitsYears |
                             esriTimeUnitsUnknown>"
    }
  },
  {
    "id": <layerOrTableId>,
    "source": <layer source>,
    "definitionExpression": "<definitionExpression>",
    "drawingInfo":
    {
      "renderer": <renderer>,
      "transparency": <transparency>,
      "scaleSymbols": <true | false >
    },
    "layerTimeOptions":
    {
      "useTime" : <true | false>,
      "timeDataCumulative" : <true | false>,
      "timeOffset" : <timeOffset>,
      "timeOffsetUnits" : "<esriTimeUnitsCenturies | esriTimeUnitsDays | esriTimeUnitsDecades |
                             esriTimeUnitsHours | esriTimeUnitsMilliseconds | esriTimeUnitsMinutes |
                             esriTimeUnitsMonths | esriTimeUnitsSeconds | esriTimeUnitsWeeks | esriTimeUnitsYears |
                             esriTimeUnitsUnknown>"
    }
  }
]

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
dynamicLayers=
[
  //disable time on existing map service layer
  {
    "id": 501,
    "source":
    {
      "type": "mapLayer",
      "mapLayerId": 0
    },
    "layerTimeOptions":
    {
	  "useTime": false
    }
  },
  //add a new layer from registered workspace
  {
    "id": 502,
    "source":
    {
      "type": "dataLayer",
      "dataSource":
      {
        "type": "table",
        "workspaceId": "MAP",
        "dataSourceName": "MAP.user1.Taxlots"
      }
    },
    "drawingInfo":
    {
      "renderer":
      {
        "type": "simple",
        "symbol":
        {
          "type" : "esriSFS",
          "style" : "esriSFSSolid",
          "color" : [166,36,0,255],
          "outline" :
          {
            "type" : "esriSLS",
            "style" : "esriSLSSolid",
            "color" : [110,110,110,255],
            "width" : 1.0
          }
        },
        "label": "TaxLots",
        "description": ""
      },
      "transparency": 60
    }
  },
  //change the Version of existing map service layer
  {
    "id": 503,
    "source":
    {
      "type": "mapLayer",
      "mapLayerId": 1,
      "version": "USER1"
    },
    "definitionExpression": "neighborhood = 'French Quarter'"
  },
  //add a raster from registered workspace
  {
    "id": 504,
    "source":
    {
      "type": "dataLayer",
      "dataSource":
      {
        "type": "raster",
        "workspaceId": "rasterWS",
        "dataSourceName": "NewOrleans.tif"
      }
    },
    "drawingInfo":
    {
      "transparency": 0
    }
  }
]

Example usage

The exported schematic diagram map related to the schematic diagram which id is '2-10' under the S1_Schematics public sample Schematics service:

Use dark colors for code blocksCopy
1
https://myserver.esri.com/arcgis/rest/services/S1_Schematics/MapServer/exts/SchematicsServer/diagrams/2-10/map/export?size=&dpi=&imageSR=&bboxSR=&format=&transparent=&time=&layerTimeOptions=&dynamicLayers=&bbox=&layerDefs=&layers=&f=html

JSON Response syntax

Use dark colors for code blocksCopy
1
{"href" : "<href>","width" : <width>,"height" : <height>,"extent" : {<envelope>},"scale" : <scale>}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "href": "https://TAHITI:6080/arcgis/server/arcgisoutput/_ags_mape0a1ae3e0f794071aafec2720bf6a1f8.png",
  "width": 400,
  "height": 400,
  "extent": {
    "xmin": -37.479462999999996,
    "ymin": -11.419442999999998,
    "xmax": -37.012996999999999,
    "ymax": -10.952976999999999,
    "spatialReference": { "wkid": 4326, "latestWkid": 4326}
  },
  "scale": 490096.28531108255
}

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