Class GeorepoLayer


  • public class GeorepoLayer
    extends Object
    • Constructor Detail

      • GeorepoLayer

        public GeorepoLayer()
    • Method Detail

      • create

        public String create​(javax.servlet.ServletContext context,
                             String absFileName,
                             String fileType,
                             String layerTitle,
                             int SRID,
                             String csvDelimiter,
                             String workspace,
                             boolean transactionSupport,
                             String geoserverDataDir,
                             String[] optColumnHeaders,
                             String[] optColumnTypes,
                             GeometryType geometryType)
                      throws IOException
        Setting up a new georepo geoserver layer with postgis source. TODO: setup a users workspace / directory before, if it does not yet exist; separately!!
        Parameters:
        inputFile -
        fileType -
        layerTitle -
        SRID -
        csvDelimiter -
        userId -
        Throws:
        Exception
        IOException
      • replaceLayer

        public static String replaceLayer​(javax.servlet.ServletContext context,
                                          String absFileName,
                                          int SRID,
                                          String csvDelimiter,
                                          String[] optColumnTypes,
                                          int layerId)
                                   throws Exception
        Replaces content of a postgis datasource/ table with new content. This operation is not incremental but discards all objects and fills the layer from scratch.
        Parameters:
        context -
        absFileName -
        fileType -
        layerTitle -
        SRID -
        csvDelimiter -
        workspace -
        transactionSupport -
        geoserverDataDir -
        optColumnTypes -
        layerId -
        Returns:
        Throws:
        Exception