require(["esri/tasks/ImageServiceMeasureParameters"], function(ImageServiceMeasureParameters) { /* code goes here */ });
Description
Samples
Search for
samples that use this class.
Constants
OPERATION_AREA_PERIMETER | Calculates the area and perimeter of given geometry. The fromGeometry parameter is of type Polygon or Extent. The toGeometry parameter is not required. |
OPERATION_AREA_PERIMETER_3D | Calculates the area and perimeter of the given geometry using the DEM defined by the service to refine the calculation. The fromGeometry parameter is of type Polygon or Extent. The toGeometry parameter is not required. |
OPERATION_BASE_TOP | Calculates the height of a structure by measuring from the base of the structure to the top of the structure. The fromGeometry and toGeometry parameters are of type Point. |
OPERATION_BASE_TOP_SHADOW | Calculates the height of a structure by measuring from the base of the structure to the top of the structure's shadow on the ground. The fromGeometry and toGeometry parameters are of type Point. |
OPERATION_CENTROID | Calculates the centroid of a given area. The fromGeometry parameter is of type Polygon or Extent. |
OPERATION_CENTROID_3D | Calculates the centroid of a given area, using the DEM defined by the service to refine the calculation. The fromGeometry parameter is of type Polygon or Extent. |
OPERATION_DISTANCE_ANGLE | Calculates the distance and azimuth angle between two points. The fromGeometry and toGeometry parameters are of type Point. |
OPERATION_DISTANCE_ANGLE_3D | Calculates the distance and azimuth angle between two points using the DEM defined by the service to refine the calculation. The fromGeometry and toGeometry parameters are of type Point. |
OPERATION_POINT | Measures the location of a given point. The fromGeometry parameter for this operation is of type Point. The toGeometry parameter is not required. |
OPERATION_POINT_3D | Measures the location of a given point, using the DEM defined by the service to refine the calculation. The fromGeometry parameter is of type Point. The toGeometry parameter is not required. |
OPERATION_TOP_TOP_SHADOW | Calculates the height of a structure by measuring from the top of the structure to the top of the structure's shadow on the ground. The points on the structure and its shadow must represent the same point. The fromGeometry and toGeometry parameters are of type Point. |
Properties
Methods
toJson() | Object | Converts the ImageServiceMeasureParameters instance to a JSON object. |
Property Details
The angular unit in which directions of line segments will be calculated.
Known values: esriDURadians | esriDUDecimalDegrees
Default value: esriDUDecimalDegrees
The area unit in which areas of polygons will be calculated.
Known values: esriSquareInches | esriSquareFeet | esriSquareYards | esriAcres | esriSquareMiles | esriSquareMillimeters | esriSquareCentimeters | esriSquareDecimeters | esriSquareMeters | esriAres | esriHectares | esriSquareKilometers
Default value: esriSquareMeters
A geometry that defines the "from" location of the measurement.
The linear unit in which height, length, or perimeters will be calculated.
Known values: esriMeters | esriKilometers | esriInches | esriFeet | esriYards | esriMiles | esriNauticalMiles | esriMillimeters | esriCentimeters | esriDecimeters
Default value: esriMeters
Specifies the mosaic rule when defining how individual images should be mosaicked. When a mosaic rule is not specified, the default mosaic rule of the image service will be used (as advertised in the root resource: defaultMosaicMethod, mosaicOperator, sortField, sortValue). The first visible image is used by measure.
The mensuration rule to apply to the measure operation. Set the value of this property to one of the constants from the
Constants table.
The pixel resolution being measured. If pixelSize
is not specified, it will default to the base resolution of the image service.
A geometry that defines the "to" location of the measurement. The geometry type must be the same as
fromGeometry.
Method Details
Converts the ImageServiceMeasureParameters instance to a JSON object.