Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Object: DensifyParameters

require(["esri/tasks/DensifyParameters"], function(DensifyParameters) { /* code goes here */ });

Description

(Added at v2.0)
Input parameters for the densify() method on the GeometryService - contains geometries, maxSegmentLength, and optionally lengthUnit, geodesic.

See also

Samples

Search for samples that use this class.

Properties

NameTypeSummary
geodesicBooleanIf true, GCS spatial references are used or densify geodesic is to be performed.
geometriesGeometry[]The array of geometries to be densified.
lengthUnitNumber | StringThe length unit of maxSegmentLength, can be any esriUnits constant.
maxSegmentLengthNumberAll segments longer than maxSegmentLength are replaced with sequences of lines no longer than maxSegmentLength.

Methods

NameReturn typeSummary
toJson()ObjectConverts object to its JSON representation.
Property Details

<Boolean> geodesic

If true, GCS spatial references are used or densify geodesic is to be performed.
Known values: true | false
Default value: null
Sample:
densifyParameters.geodesic = true;

<Geometry[]> geometries

The array of geometries to be densified.
Default value: null
Sample:
densifyParameters.geometries = [geometry];

<Number | String> lengthUnit

The length unit of maxSegmentLength, can be any esriUnits constant.
Default value: null
Sample:
densifyParameters.lengthUnit = GeometryService.UNIT_SQUARE_MILES;

<Number> maxSegmentLength

All segments longer than maxSegmentLength are replaced with sequences of lines no longer than maxSegmentLength.
Default value: null
Sample:
densifyParameters.maxSegmentLength = 10;
Method Details

toJson()

Converts object to its JSON representation.
Return type: Object
Show Modal