require(["esri/geometry/operators/geodeticDensifyOperator"], (geodeticDensifyOperator) => { /* code goes here */ });
import * as geodeticDensifyOperator from "@arcgis/core/geometry/operators/geodeticDensifyOperator.js";
esri/geometry/operators/geodeticDensifyOperator
Densifies line segments by length in a 2D plane, making them run along specified geodetic curves. There are no segments longer than the specified maximum segment length.
Suggestion: If you have an area of interest such as a visible extent, clip the input geometries before densifying to limit the amount of segments produced.
Method Overview
Name | Return Type | Summary | Object |
---|---|---|---|
Densifies the input geometry. | geodeticDensifyOperator | ||
Densifies the input geometries. | geodeticDensifyOperator | ||
Indicates if all dependencies of this module have been loaded. | geodeticDensifyOperator | ||
Promise | Loads this module's dependencies. | geodeticDensifyOperator |
Method Details
-
Densifies the input geometry.
ParametersSpecificationgeometry GeometryThe input geometry to be densified.
maxSegmentLength NumberThe maximum segment length allowed. Unless the
unit
option is set, the default is meters. Must be a positive value.options ObjectoptionalAdditional options.
SpecificationcurveType StringoptionalDefault Value: "geodesic"The type of geodetic curve used to densify the geometry.
Possible Values:"geodesic"|"loxodrome"|"great-elliptic"|"normal-selection"|"shape-preserving"
unit LengthUnitoptionalThe length unit of
maxSegmentLength
.ReturnsExample// Densify a polyline geometry if (geodeticDensifyOperator.isLoaded()) { const densifiedPolyline = geodeticDensifyOperator.execute(polyline, 100); }
-
Densifies the input geometries.
ParametersSpecificationThe set of geometries to be densified.
maxSegmentLength NumberThe maximum segment length allowed. Unless the
unit
option is set, the default is meters. Must be a positive value.options ObjectoptionalAdditional options.
SpecificationcurveType StringoptionalDefault Value: "geodesic"The type of geodetic curve used to densify the geometries.
Possible Values:"geodesic"|"loxodrome"|"great-elliptic"|"normal-selection"|"shape-preserving"
unit LengthUnitoptionalThe length unit of
maxSegmentLength
.Returns
-
Loads this module's dependencies. This method must be called first if
isLoaded
returnsfalse
.ReturnsType Description Promise Resolves when the dependencies have been loaded. - See also