Class RESTImportTask


  • public class RESTImportTask
    extends AbstractRESTEntity
    A task represents a unit of work to the importer needed to register one new layer, or alter an existing one, and contains the following information:

    * The data being imported * The target store that is the destination of the import * The target layer * The data of a task, referred to as its source, is the data to be processed as part of the task. * The transformations that we need to apply to the data before it gets imported

    This data comes in a variety of forms including:

    * A spatial file (Shapefile, GeoTiff, KML, etc...) * A directory of spatial files * A table in a spatial database * A remote location that the server will download data from

    A task is classified as either “direct” or “indirect”. A direct task is one in which the data being imported requires no transformation to be imported. It is imported directly. An example of such a task is one that involves simply importing an existing Shapefile as is. An indirect task is one that does require a transformation to the original import data. An example of an indirect task is one that involves importing a Shapefile into an existing PostGIS database. Another example of indirect task might involve taking a CSV file as an input, turning a x and y column into a Point, remapping a string column into a timestamp, and finally import the result into a PostGIS.

    Author:
    Daniel Koch, terrestris GmbH & Co. KG
    • Constructor Detail

      • RESTImportTask

        public RESTImportTask()
        Default constructor.
    • Method Detail

      • getId

        public Integer getId()
        Returns:
        the id
      • setId

        public void setId​(Integer id)
        Parameters:
        id - the id to set
      • getHref

        public String getHref()
        Returns:
        the href
      • setHref

        public void setHref​(String href)
        Parameters:
        href - the href to set
      • getState

        public String getState()
        Returns:
        the state
      • setState

        public void setState​(String state)
        Parameters:
        state - the state to set
      • getUpdateMode

        public String getUpdateMode()
        Returns:
        the updateMode
      • setUpdateMode

        public void setUpdateMode​(String updateMode)
        Parameters:
        updateMode - the updateMode to set
      • getData

        public RESTData getData()
        Returns:
        the data
      • setData

        public void setData​(RESTData data)
        Parameters:
        data - the data to set
      • getTarget

        public RESTTarget getTarget()
        Returns:
        the target
      • setTarget

        public void setTarget​(RESTTarget target)
        Parameters:
        target - the target to set
      • getProgress

        public String getProgress()
        Returns:
        the progress
      • setProgress

        public void setProgress​(String progress)
        Parameters:
        progress - the progress to set
      • getLayer

        public RESTLayer getLayer()
        Returns:
        the layer
      • setLayer

        public void setLayer​(RESTLayer layer)
        Parameters:
        layer - the layer to set
      • getErrorMessage

        public String getErrorMessage()
        Returns:
        the errorMessage
      • setErrorMessage

        public void setErrorMessage​(String errorMessage)
        Parameters:
        errorMessage - the errorMessage to set
      • getTransformChain

        public RESTTransformChain getTransformChain()
        Returns:
        the transformChain
      • setTransformChain

        public void setTransformChain​(RESTTransformChain transformChain)
        Parameters:
        transformChain - the transformChain to set