Template (Network Diagrams)

Description

The Template resource represents a single diagram template under a Network Diagrams service. It is returned as a JSON object that provides the list of the diagram layouts and their property sets which are preset for the template.

The Template resource doesn't support any operation nor any child resource.

Template REST end point resource

License:
The ArcGIS Utility Network Management extension is required to use this resource.

Request Parameters

ParameterDetails
gdbVersion

Description: The name of the geodatabase version.

Syntax: gdbVersion=<version>

Example: gdbVersion=ABV1

sessionId

Description: The token (guid) used to lock the version.

Syntax: sessionId=<guid>

Example: sessionId=44G259DE-87B0-407D-8F2E-DCB7665DD0F0

f

Description: The response format. The default response format is html.

Values: <html | json>

Example Usage

Accessing the Basic template REST end point: http://batz.esri.com/server/rest/services/Naperville/NetworkDiagramServer/templates/Basic?gdbVersion=&sessionId=&f=pjson.

JSON Response Syntax

{
  "layoutParams": {
  "<algo1Name>:{
   "type": "PropertySet",
   "propertySetItems": [
    "algo1ParamName1", <algo1ParamValue1>, 
    …,
    "algo1ParamNameN", <algo1ParamValueN>
   ]
  },
  …,
  "<algoKName>:{
   "type": "PropertySet",
   "propertySetItems": [
    "algoKParamName1", <algoKParamValue1>, 
    …,
    "algoKParamNameP", <algoKParamValueP>
   ]
  }
 }
}

JSON Response Example

{
 "layoutParams": {
  "AngleDirectedDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "are_containers_preserved",
    false,
    "is_active",
    false,
    "iterations_number",
    1,
    "number_of_directions",
    8
   ]
  },
  "CompressionDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "are_containers_preserved",
    true,
    "is_active",
    false,
    "grouping_distance",
    20,
    "vertices_removal_rule",
    2
   ]
  },
  "ForceDirectedDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "are_containers_preserved",
    false,
    "is_active",
    false,
    "iterations_number",
    20,
    "repel_factor",
    1,
    "degree_freedom",
    1
   ]
  },
  "GeoPositionsDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "is_active",
    false,
    "restore_edges_geo_positions",
    true
   ]
  },
  "GridDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "are_containers_preserved",
    false,
    "is_active",
    false,
    "cell_width",
    2,
    "cell_height",
    2
   ]
  },
  "LinearDispatchDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "is_unit_absolute",
    false,
    "is_active",
    false,
    "junction_placement_type",
    1,
    "maximum_shift",
    2,
    "minimum_shift",
    2,
    "iterations_number",
    5,
    "is_path_preserved",
    true,
    "are_leaves_moved",
    false,
    "are_leaves_expanded",
    false,
    "expand_shift",
    2
   ]
  },
  "MainLineTreeDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "are_containers_preserved",
    false,
    "is_active",
    false,
    "is_unit_absolute",
    false,
    "tree_direction",
    2,
    "branches_placement",
    2,
    "perpendicular",
    2,
    "along",
    2,
    "disjoined_graph",
    4,
    "are_edges_orthogonal",
    false,
    "breakpoint_position",
    0.5
   ]
  },
  "PartialOverlappingEdgesDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "is_active",
    false,
    "buffer_width",
    1,
    "offset",
    0.5,
    "optimize_edges",
    false
   ]
  },
  "RadialTreeDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "are_containers_preserved",
    false,
    "is_active",
    false,
    "is_unit_absolute",
    false,
    "initial_radius",
    5,
    "disjoined_graph",
    10,
    "radius_factor",
    1
   ]
  },
  "ReshapeEdgesDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "are_containers_preserved",
    false,
    "is_active",
    false,
    "reshape_type",
    1,
    "is_path_preserved",
    true,
    "angle_threshold",
    0,
    "shift_between_edge",
    0.5,
    "offset_between_segment",
    5,
    "breakpoint",
    8.6600000000000001
   ]
  },
  "RotateTreeDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "are_containers_preserved",
    false,
    "is_active",
    false,
    "rotation_angle",
    45
   ]
  },
  "SeparateOverlappingEdgesDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "are_containers_preserved",
    false,
    "is_active",
    false,
    "shift_between_edge",
    0.5
   ]
  },
  "SmartTreeDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "are_containers_preserved",
    false,
    "is_active",
    false,
    "is_unit_absolute",
    false,
    "tree_direction",
    2,
    "subtree",
    2,
    "perpendicular",
    2,
    "along",
    2,
    "disjoined_graph",
    4,
    "are_edges_orthogonal",
    false,
    "breakpoint_position",
    0.5
   ]
  },
  "SpatialDispatchDiagramLayout": {
   "type": "PropertySet",
   "propertySetItems": [
    "are_containers_preserved",
    false,
    "is_active",
    false,
    "iterations_number",
    5,
    "maximum_shift_factor",
    2
   ]
  }
 }
}