The ProjectGeometriesCommand class is used to convert a featurecollection's geometry from one coordinate system to another. It returns the newly projected FeatureCollection
var feature = { type: "Feature", geometry: { type: "Point", coordinates: [-82.4414, 29.2001] }, properties: { id: 1, ImAProperty: true } }; var options = { wkid_in: "4326", wkid_out: "3087", name: "Albers", url: "http://thisurl/project", features: [feature] }; var command = new ProjectGeometriesCommand(); commmand.execute(options).then((features)=> doSomething(features));
Project featurecollection geometries
ProjectGeometriesCommandOptions.
a Q.Promise of an array of FeatureCollection.
The ProjectGeometriesCommand class is used to convert a featurecollection's geometry from one coordinate system to another. It returns the newly projected FeatureCollection
var feature = { type: "Feature", geometry: { type: "Point", coordinates: [-82.4414, 29.2001] }, properties: { id: 1, ImAProperty: true } };
var options = { wkid_in: "4326", wkid_out: "3087", name: "Albers", url: "http://thisurl/project", features: [feature] };
var command = new ProjectGeometriesCommand();
commmand.execute(options).then((features)=> doSomething(features));