Class GeoserverVectorLayer
- java.lang.Object
-
- de.narimo.georepo.server.geoserver.GeoserverLayer
-
- de.narimo.georepo.server.geoserver.GeoserverVectorLayer
-
- Direct Known Subclasses:
GeoserverPostgisLayer
public class GeoserverVectorLayer extends GeoserverLayer
-
-
Constructor Summary
Constructors Constructor Description GeoserverVectorLayer(javax.servlet.ServletContext ctx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateGeoserverDatasource0(String workspace, String datasourceName, String body)Create a geoserver datasource for vector data types.StringcreateGeoserverFeatureType(String workspace, String datasourceName, String tableName, String layerTitle)static voidmain(String[] args)voidrecalculateFeatureType(String workspace, String datasourceName, String featureType)Updates the bbox of the feature type after changes to underlying datasource have been made.-
Methods inherited from class de.narimo.georepo.server.geoserver.GeoserverLayer
datasourceExists, getDatasourcesXML, getDbSchema, getDbUserName, getDbUserPass, getGeoserverPass, getGeoserverRestUrl, getGeoserverUrl, getGeoserverUser, getHeaders, getLayersXML, getPgPort, getWorkspacesXML, layerExists, setDbUserName, setDbUserPass, wmsstoreExists, workspaceExists
-
-
-
-
Method Detail
-
createGeoserverDatasource0
public void createGeoserverDatasource0(String workspace, String datasourceName, String body) throws IOException
Create a geoserver datasource for vector data types.- Parameters:
workspace-datasourceName-body-- Throws:
ExceptionIOException
-
createGeoserverFeatureType
public String createGeoserverFeatureType(String workspace, String datasourceName, String tableName, String layerTitle) throws IOException
- Throws:
IOException
-
recalculateFeatureType
public void recalculateFeatureType(String workspace, String datasourceName, String featureType) throws Exception
Updates the bbox of the feature type after changes to underlying datasource have been made. Sets the layer to enabled.- Parameters:
workspace-datasourceName-featureType-- Throws:
Exception
-
main
public static void main(String[] args)
-
-