GeoServer REST Configuration
Project description
gsconfig.py
gsconfig.py is a python library for manipulating a GeoServer instance via the GeoServer RESTConfig API.
TODOS
Add support for adding and removing data from GeoServer
Maintain test coverage
Sample Layer Creation Code
from geoserver.catalog import Catalog
cat = Catalog("http://localhost:8080/geoserver/")
topp = self.cat.get_workspace("topp")
shapefile_plus_boxcars = shapefile_and_friends("states")
# shapefile_and_friends should look on the filesystem to find a shapefile
# and related files based on the base path passed in
#
# shapefile_plus_boxcars == {
# 'shp': 'states.shp',
# 'shx': 'states.shx',
# 'prj': 'states.prj',
# 'dbf': 'states.dbf'
# }
# 'data' is required (there may be a 'schema' alternative later, for creating empty featuretypes)
# 'workspace' is optional (GeoServer's default workspace is used by... default)
# 'name' is required
ft = self.cat.create_featuretype(name, workspace=topp, data=shapefile_plus_boxcars)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gsconfig-0.5.2.tar.gz
(11.8 kB
view details)
File details
Details for the file gsconfig-0.5.2.tar.gz.
File metadata
- Download URL: gsconfig-0.5.2.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
deaeb1188904e743e0c368708aab81550dd1e9cb97ca21f02ddddf3c3d62733e
|
|
| MD5 |
f2091547f713a7ff2559520aa55df046
|
|
| BLAKE2b-256 |
23a9bea60ca5fa14e61702fbee0ec05d442b642759f39680d886e7fd1bd8eaf8
|