Class: TrimExtendParameters

Description

Class added v2.0.

Sets the polylines and other parameters for the trimExtend operation.

Samples

Search for samples that use this class.  

Class hierarchy

esri.tasks.TrimExtendParameters

Constructor

Constructor Description
esri.tasks.TrimExtendParameters() Creates a new TrimExtendParameters object. The constructor takes no parameters.

Properties

Property Type Description
extendHow String A flag used with the trimExtend operation.
polylines Polyline[] 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.
trimExtendTo Polyline 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.
Constructor Detail

esri.tasks.TrimExtendParameters()

Creates a new TrimExtendParameters object. The constructor takes no parameters.
Code snippets:
var trimExtendParams = new esri.tasks.TrimExtendParameters();
Properties Detail

<String> extendHow

A flag used along with the trimExtend operation.

DEFAULT_CURVE_EXTENSION

Default 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 extraploated from existing adjacent segments.

RELOCATE_ENDS

When an extension is performed at an end, relocate the end point to the new position.

KEEP_END_ATTRIBUTES

When 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_ATTRIBUTES

When an extension is performed at an end, do not extraploate the end segments attributes for the new point. Instead the attributes will be empty.

NO_EXTEND_AT_FROM

Do not extend the 'from' end of any path.

NO_EXTEND_AT_TO

Do not extend the 'to' end of any path.

<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.
Code snippets:
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.