Class GeoprocessingParameters
- java.lang.Object
-
- com.esri.arcgisruntime.tasks.geoprocessing.GeoprocessingParameters
-
public final class GeoprocessingParameters extends Object
Geoprocessing parameters contains input parameters that are sent to the target geoprocessing task.
GeoprocessingParameters contains both input parameters and environment variables that are used in the target geoprocessing task. At a minimum all parameters that are set as required on the published task must to be provided to run the task successfully. Parameters that have default values can be overridden by providing a new value in the inputs map. Optional parameters can be provided the same way.
- Since:
- 100.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoprocessingParameters.ExecutionType
The list of geoprocessing execution types.
-
Constructor Summary
Constructors Constructor Description GeoprocessingParameters(GeoprocessingParameters.ExecutionType executionType)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoprocessingParameters.ExecutionType
getExecutionType()
Returns the execution type for this parameters object.Map<String,GeoprocessingParameter>
getInputs()
Returns a map of name to value of inputs.SpatialReference
getOutputSpatialReference()
Returns the output spatial reference.SpatialReference
getProcessSpatialReference()
Returns the process spatial reference.boolean
getReturnM()
Returns true if M value are to be returned.boolean
getReturnZ()
Returns true if z value are to be returned.void
setOutputSpatialReference(SpatialReference spatialReference)
Sets the output spatial reference.void
setProcessSpatialReference(SpatialReference spatialReference)
Sets the process spatial reference.void
setReturnM(boolean returnM)
Sets if M values are to be returned.void
setReturnZ(boolean returnZ)
Sets if z values are to be returned.
-
-
-
Constructor Detail
-
GeoprocessingParameters
public GeoprocessingParameters(GeoprocessingParameters.ExecutionType executionType)
Creates an instance.- Parameters:
executionType
- the execution type- Throws:
IllegalArgumentException
- if executionType is null- Since:
- 100.0.0
-
-
Method Detail
-
getInputs
public Map<String,GeoprocessingParameter> getInputs()
Returns a map of name to value of inputs. Use this collection to modify the parameters that are sent to a geoprocessing task when it is run.- Returns:
- the inputs map
- Since:
- 100.0.0
-
setOutputSpatialReference
public void setOutputSpatialReference(SpatialReference spatialReference)
Sets the output spatial reference.- Parameters:
spatialReference
- the spatial reference to set- Throws:
IllegalArgumentException
- if spatial reference is null- Since:
- 100.0.0
-
getOutputSpatialReference
public SpatialReference getOutputSpatialReference()
Returns the output spatial reference.- Returns:
- the spatial reference
- Since:
- 100.0.0
-
setProcessSpatialReference
public void setProcessSpatialReference(SpatialReference spatialReference)
Sets the process spatial reference.- Parameters:
spatialReference
- the spatial reference to set- Throws:
IllegalArgumentException
- if spatial reference is null- Since:
- 100.0.0
-
getProcessSpatialReference
public SpatialReference getProcessSpatialReference()
Returns the process spatial reference.- Returns:
- the spatial reference
- Since:
- 100.0.0
-
setReturnM
public void setReturnM(boolean returnM)
Sets if M values are to be returned.- Parameters:
returnM
- true, to enable- Since:
- 100.0.0
-
getReturnM
public boolean getReturnM()
Returns true if M value are to be returned.- Returns:
- true, if M values are enabled
- Since:
- 100.0.0
-
setReturnZ
public void setReturnZ(boolean returnZ)
Sets if z values are to be returned.- Parameters:
returnZ
- true, to enable- Since:
- 100.0.0
-
getReturnZ
public boolean getReturnZ()
Returns true if z value are to be returned.- Returns:
- true, if z values are enabled
- Since:
- 100.0.0
-
getExecutionType
public GeoprocessingParameters.ExecutionType getExecutionType()
Returns the execution type for this parameters object.- Returns:
- the execution type
-
-