Git Product home page Git Product logo

gsconfig-py3's Introduction

gsconfig-py3

gsconfig-py3 is a python3 library for manipulating a GeoServer instance via the GeoServer RESTConfig API.

gsconfig-py3 is a port of gsconfig (https://github.com/boundlessgeo/gsconfig) for python3.

Tested with geoserver 2.8.1.

The project is distributed under a MIT License .

Installing

git clone [email protected]:SatAgro/gsconfig-py3.git
cd gsconfig-py3
python setup.py install

Getting Help

gsconfig-py3 keeps the same API as gsconfig, so you can refer to http://boundlessgeo.github.io/gsconfig/ for getting help to use it.

Testing

To test you must to have installed docker and docker-compose and then

$ cd docker
$ docker-compose up
$ cd ..
$ python setup.py test

Sample Layer Creation Code

from geoserver.catalog import Catalog
cat = Catalog("http://localhost:8080/geoserver/")
topp = cat.get_workspace("topp")
shapefile_plus_sidecars = 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_sidecars == {
#    '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 = cat.create_featurestore(name, workspace=topp, data=shapefile_plus_sidecars)

gsconfig-py3's People

Contributors

dwins avatar ingenieroariel avatar ischneider avatar garnertb avatar iwillig avatar mwengren avatar mbertrand avatar dimitri-justeau avatar jj0hns0n avatar berrydaniel avatar simod avatar jodygarnett avatar dblodgett-usgs avatar bloofx avatar cristianzamar avatar volaya avatar tschaub avatar laskama avatar jcelda avatar granci avatar pmauduit avatar ndufrane avatar milovanderlinden avatar dakcarto avatar tr00st avatar christianurich avatar cspanring avatar arno974 avatar alexbruy avatar tinogis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.