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

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

Description

(Added at v3.0)
Define the projection parameters used when calling the GeometryService project method.

Samples

Search for samples that use this class.

Constructors

NameSummary
new ProjectParameters()Creates a new ProjectParameters object.

Properties

NameTypeSummary
geometriesGeometry[]The input geometries to project.
outSRSpatialReferenceThe spatial reference to which you are projecting the geometries.
transformForwardBooleanIndicates whether to transform forward or not.
transformationObjectThe well-known id {wkid:number} or well-known text {wkt:string} or for the datum transformation to be applied on the projected geometries.
Constructor Details

new ProjectParameters()

Creates a new ProjectParameters object.
Sample:
require([
  "esri/tasks/ProjectParameters", ... 
], function(ProjectParameters, ... ) {
  var params = new ProjectParameters();
  ...
});
Property Details

<Geometry[]> geometries

The input geometries to project.
The spatial reference to which you are projecting the geometries.

<Boolean> transformForward

Indicates whether to transform forward or not. The forward or reverse direction of transformation is implied in the name of the transformation.
Known values: true | false

<Object> transformation

The well-known id {wkid:number} or well-known text {wkt:string} or for the datum transformation to be applied on the projected geometries. If a transformation is specified a value must also be specified for the transformForward property. If a transformation is not specified, a default GeoTransformation is used.

Click here for a list of valid datum transformations.

Sample:

var params = new ProjectParameters();
params.transformation.wkid = 1188;  //NAD_1983_To_WGS_1984_1
Show Modal