Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: TrimExtendParameters

dojo.require("esri.tasks.TrimExtendParameters")

Description

(Added at v2.0)
Sets the polylines and other parameters for the trimExtend operation.

Samples

Search for samples that use this class.

Constructors

NameSummary
new esri.tasks.TrimExtendParameters()Creates a new TrimExtendParameters object.

Constants

NameDescription
DEFAULT_CURVE_EXTENSIONDefault value. The extension considers both ends of the path. The old ends remain and new points are added to the extended ends. The new points have attributes that are extrapolated from existing adjacent segments.
KEEP_END_ATTRIBUTESWhen an extension is performed at an end, do not extrapolate the end segments attributes for the new point. Instead, the attributes will be the same as the current end.
NO_END_ATTRIBUTESWhen an extension is performed at an end, do not extrapolate the end segment's attributes for the new point. Instead the attributes will be empty.
NO_EXTEND_AT_FROMDo not extend the 'from' end of any path.
NO_EXTEND_AT_TODo not extend the 'to' end of any path.
RELOCATE_ENDSWhen an extension is performed at an end, relocate the end point to the new position.

Properties

NameTypeSummary
extendHowNumberA flag used along with the trimExtend operation.
polylinesPolyline[]The array of polylines to trim or extend.
trimExtendToPolylineA polyline used as a guide for trimming or extending input polylines.
Constructor Details

new esri.tasks.TrimExtendParameters()

Creates a new TrimExtendParameters object. The constructor takes no parameters.
Sample:
var trimExtendParams = new esri.tasks.TrimExtendParameters();
Property Details

<Number> extendHow

A flag used along with the trimExtend operation. See the constants table for possible values.

<Polyline[]> polylines

The array of polylines to trim or extend. The structure of each geometry in the array is the same as the structure of the JSON polyline objects returned by the ArcGIS REST API.
Sample:
trimExtendParams.polylines = esri.getGeometries(lateralFL.getSelectedFeatures());

<Polyline> trimExtendTo

A polyline used as a guide for trimming or extending input polylines. The structure of the polyline is the same as the structure of the JSON polyline object returned by the ArcGIS REST API.
Show Modal