AnsweredAssumed Answered

define parameters for gp

Question asked by anjelinaponkerat on Jan 19, 2018

I,m setting input parameters for geoprocessing service in ajs api 4.6, but gp can not run. is there any problem in my settings?:

 

 

var vsDistance = new LinearUnit();
vsDistance.distance = 5;
vsDistance.units = "Kilometers";

var Sr = "WGS 1984";
var Fm = "Shapefile - SHP - .shp";
var Destination = "anjelinaponkerat@gmail.com";

var params = {
"PourPoint": featureSet,
"Distance__value_or_field_": vsDistance,
"Spatial_Reference": Sr,
"Feature_Format": Fm,
"To": Destination
};

Outcomes