Package de.narimo.georepo.server
Class GeorepoLayer
- java.lang.Object
-
- de.narimo.georepo.server.GeorepoLayer
-
public class GeorepoLayer extends Object
-
-
Constructor Summary
Constructors Constructor Description GeorepoLayer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcreate(javax.servlet.ServletContext context, String absFileName, String fileType, String layerTitle, int SRID, String csvDelimiter, String workspace, boolean transactionSupport, String geoserverDataDir, String[] optColumnHeaders, String[] optColumnTypes)Setting up a new georepo geoserver layer with postgis source.static StringreplaceLayer(javax.servlet.ServletContext context, String absFileName, int SRID, String csvDelimiter, String[] optColumnTypes, int layerId)Replaces content of a postgis datasource/ table with new content.
-
-
-
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) 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:
ExceptionIOException
-
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
-
-