@Provider
@Path(value="/workspaces/{workspace}/layers")
public class LayerController
extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
geoserverDataDir |
| Constructor and Description |
|---|
LayerController() |
| Modifier and Type | Method and Description |
|---|---|
static javax.ws.rs.core.Response |
createLayer(javax.servlet.ServletContext ctx,
String workspace,
String sridAsString,
String delimiter,
String fileName,
String readableLayerName,
String fileType,
String optColumnTypes)
Prerequisites for csv import:
- only point data supported yet
- column lon for longitude coordinates
- column lat for latitude coordinates
- filename must only contain alphanumerics, dashes and underscores
- filename must end .csv (postgres insert function restriction)
- only allowed csvdelimiter is semicolon (;)
- currently only utf8 charset allowed, i.e., no umlauts, ß, etc.
|
static javax.ws.rs.core.Response |
getWorkspaceLayers(javax.ws.rs.core.SecurityContext sec,
javax.servlet.ServletContext ctx,
String workspace) |
static void |
importFile0(javax.servlet.ServletContext ctx,
String workspace,
String fileName,
String layerName,
String optColumnTypes) |
static javax.ws.rs.core.Response |
removeLayer() |
static javax.ws.rs.core.Response |
updateLayerContent(javax.servlet.ServletContext ctx,
String workspace,
String layerName,
String sridAsString,
String delimiter,
String fileName,
String fileType,
String optColumnTypes) |
public static String geoserverDataDir
@GET
@Path(value="")
@Produces(value="application/json")
public static javax.ws.rs.core.Response getWorkspaceLayers(@Context
javax.ws.rs.core.SecurityContext sec,
@Context
javax.servlet.ServletContext ctx,
@PathParam(value="workspace")
String workspace)
@POST
@Path(value="")
public static javax.ws.rs.core.Response createLayer(@Context
javax.servlet.ServletContext ctx,
@PathParam(value="workspace")
String workspace,
@QueryParam(value="srid")
String sridAsString,
@QueryParam(value="delimiter")
String delimiter,
@QueryParam(value="filename")
String fileName,
@QueryParam(value="layername")
String readableLayerName,
@QueryParam(value="filetype")
String fileType,
@QueryParam(value="columntypes")
String optColumnTypes)
throws Exception
sec - ctxt - workspace - sridAsString - delimiter - fileName - readableLayerName - fileType - optColumnTypes - Exception@POST
@Path(value="/{datasource}/update")
public static javax.ws.rs.core.Response updateLayerContent(@Context
javax.servlet.ServletContext ctx,
@PathParam(value="workspace")
String workspace,
@PathParam(value="datasource")
String layerName,
@QueryParam(value="srid")
String sridAsString,
@QueryParam(value="delimiter")
String delimiter,
@QueryParam(value="filename")
String fileName,
@QueryParam(value="filetype")
String fileType,
@QueryParam(value="columntypes")
String optColumnTypes)
throws Exception
Exception@DELETE
@Path(value="/{layerid}")
public static javax.ws.rs.core.Response removeLayer()
Copyright © 2020. All rights reserved.