Package de.narimo.georepo.server.db
Class PostgisInput
- java.lang.Object
-
- de.narimo.georepo.server.db.PostgisInput
-
public class PostgisInput extends Object
-
-
Constructor Summary
Constructors Constructor Description PostgisInput()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcsv2postgis(de.narimo.commons.jdbc.JDBCConnectionJNDI gsdataConn, String absCsvFileName, String tableName, char delimiter, String geoserverDataDir, int srid, String[] optColumnTypes, GeometryType geometryType)Reads a geocsv file into a postgis table.static voidoptimize(de.narimo.commons.jdbc.JDBCConnectionJNDI gsdataConn, String tableName, String geometryColumnName)Do spatial optimizations like spatial indexing, analyze, clustering on new geometry tables to enhance query speed.static voidstructure2postgis(de.narimo.commons.jdbc.JDBCConnectionJNDI gsdataConn, String tableName, int srid, String[] headers, String[] optColumnTypes, GeometryType geometryType)Creates a new data table with no rows.static voidvacuum(de.narimo.commons.jdbc.JDBCConnectionJNDI gsdataConn, String tableName)
-
-
-
Method Detail
-
csv2postgis
public static void csv2postgis(de.narimo.commons.jdbc.JDBCConnectionJNDI gsdataConn, String absCsvFileName, String tableName, char delimiter, String geoserverDataDir, int srid, String[] optColumnTypes, GeometryType geometryType) throws ExceptionReads a geocsv file into a postgis table.- Throws:
Exception
-
structure2postgis
public static void structure2postgis(de.narimo.commons.jdbc.JDBCConnectionJNDI gsdataConn, String tableName, int srid, String[] headers, String[] optColumnTypes, GeometryType geometryType) throws ExceptionCreates a new data table with no rows.- Parameters:
gsdataConn-tableName-srid-headers-optColumnTypes-- Throws:
Exception
-
optimize
public static void optimize(de.narimo.commons.jdbc.JDBCConnectionJNDI gsdataConn, String tableName, String geometryColumnName) throws ExceptionDo spatial optimizations like spatial indexing, analyze, clustering on new geometry tables to enhance query speed.- Throws:
Exception
-
-