Defines the shape of a dimension that measures the distance between two points.

Referenced by: Dimension Layer

Properties

PropertyDetails
endPointThe position of the point that a dimension is measured to (last input point).
measureTypeDefines whether the horizontal, vertical or direct distance between the start and end points is measured.
Valid values:
  • direct
  • horizontal
  • vertical
offsetThe distance of the dimension line from the nearest input point in meters.
orientationThe direction that the offset of a dimension with a ‘direct’ measureType extends in.
startPointThe position of the point that a dimension is measured from (first input point).
typeSpecifies the type of the dimension.
Valid value of this property length

Example

{
"type": "length",
"startPoint": {
"x": 0,
"y": 0,
"z": 10,
"spatialReference": {
"wkid": 102100
}
},
"endPoint": {
"x": 10,
"y": 10,
"z": 10,
"spatialReference": {
"wkid": 102100
}
},
"measureType": "vertical",
"offset": 2,
"orientation": 90
}