gsconfig

GeoServer REST Configuration
Download

gsconfig Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • David Winslow and Sebastian Benthall
  • Publisher web site:
  • http://github.com/opengeo/

gsconfig Tags


gsconfig Description

gsconfig is a Python library for manipulating a GeoServer instance via the GeoServer RESTConfig API.Sample Layer Creation Codefrom geoserver.catalog import Catalogcat = 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 requiredft = self.cat.create_featuretype(name, workspace=topp, data=shapefile_plus_boxcars)Product's homepage


gsconfig Related Software