Class GeoprocessingParameters


  • public final class GeoprocessingParameters
    extends java.lang.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
    • Constructor Detail

      • GeoprocessingParameters

        public GeoprocessingParameters​(GeoprocessingParameters.ExecutionType executionType)
        Creates an instance.
        Parameters:
        executionType - the execution type
        Throws:
        java.lang.IllegalArgumentException - if executionType is null
        Since:
        100.0.0
    • Method Detail

      • getInputs

        public java.util.Map<java.lang.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:
        java.lang.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:
        java.lang.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