public class GeorepoTools extends Object
| Constructor and Description |
|---|
GeorepoTools() |
| Modifier and Type | Method and Description |
|---|---|
static String |
copyFileToImportDir(String geoserverDataDir,
String workspace,
String csvFileName) |
static String |
getFileExtension(String absFileName)
Returns the extension of a file as after the last ".".
|
static javax.ws.rs.core.Response |
importGeoCSV(javax.servlet.ServletContext context,
String geoserverDataDir,
String sridAsString,
String delimiter,
String csvFileName,
String readableLayerName,
String workspace,
String optColumnTypes) |
static javax.ws.rs.core.Response |
importShape(javax.servlet.ServletContext context,
String geoserverDataDir,
String sridAsString,
String shpFileName,
String readableLayerName,
String[] optColumnTypes)
Deprecated.
not up to date. see importGeoCSV
|
static boolean |
isAlphaNumeric(String s)
Checks a string for only occurrences of alphanumeric characters including
underscore.
|
static void |
main(String[] args) |
static String |
normalize(String input)
Removes special chars, retains underscore.
|
static javax.ws.rs.core.Response |
replaceGeoCSVLayer(javax.servlet.ServletContext context,
String geoserverDataDir,
String sridAsString,
String delimiter,
String csvFileName,
String workspace,
String optColumnTypes,
int layerId) |
public static javax.ws.rs.core.Response importGeoCSV(javax.servlet.ServletContext context,
String geoserverDataDir,
String sridAsString,
String delimiter,
String csvFileName,
String readableLayerName,
String workspace,
String optColumnTypes)
throws Exception
Exceptionpublic static javax.ws.rs.core.Response replaceGeoCSVLayer(javax.servlet.ServletContext context,
String geoserverDataDir,
String sridAsString,
String delimiter,
String csvFileName,
String workspace,
String optColumnTypes,
int layerId)
throws Exception
Exceptionpublic static javax.ws.rs.core.Response importShape(javax.servlet.ServletContext context,
String geoserverDataDir,
String sridAsString,
String shpFileName,
String readableLayerName,
String[] optColumnTypes)
throws IOException
geoserverDataDir - sridAsString - shpFileName - readableLayerName - ExceptionIOExceptionpublic static String copyFileToImportDir(String geoserverDataDir, String workspace, String csvFileName) throws IOException
IOExceptionpublic static String getFileExtension(String absFileName)
absFileName - public static String normalize(String input) throws IOException
inputz - IOExceptionpublic static boolean isAlphaNumeric(String s)
s - public static void main(String[] args) throws IOException
IOExceptionCopyright © 2021. All rights reserved.