Geobricks Manager for Geoserver Clusters
=====================
The main purpose of this project is to provide a configurable entry point to handle a cluster of Geoservers.
It uses as dependency [gscofing](https://github.com/boundlessgeo/gsconfig) as base REST engine to publish the data.
Example to configure a cluster of Geoservers
```python
from geobricks_geoserver_manager.core.geoserver_manager_core import GeoserverManager
config = {
"geoserver_master": "http://localhost:9090/geoserver/rest",
"geoserver_slaves": [],
"username": "admin",
"password": "geoserver"
}
geoserver_manager = GeoserverManager(config)
```
Example of how to publish a coveragestore
```python
data_coverage = {
"layerName": "raster_name",
"path": "../test_data/MODIS/MOD13A2_3857.tif",
# optional workspace (otherwise it uses the default Geoserver master one)
"workspace": "test_workspace",
# optional style to be applied to the layer
"defaultStyle": "mask"
}
geoserver_manager.publish_coveragestore(data_coverage)
```
=====================
The main purpose of this project is to provide a configurable entry point to handle a cluster of Geoservers.
It uses as dependency [gscofing](https://github.com/boundlessgeo/gsconfig) as base REST engine to publish the data.
Example to configure a cluster of Geoservers
```python
from geobricks_geoserver_manager.core.geoserver_manager_core import GeoserverManager
config = {
"geoserver_master": "http://localhost:9090/geoserver/rest",
"geoserver_slaves": [],
"username": "admin",
"password": "geoserver"
}
geoserver_manager = GeoserverManager(config)
```
Example of how to publish a coveragestore
```python
data_coverage = {
"layerName": "raster_name",
"path": "../test_data/MODIS/MOD13A2_3857.tif",
# optional workspace (otherwise it uses the default Geoserver master one)
"workspace": "test_workspace",
# optional style to be applied to the layer
"defaultStyle": "mask"
}
geoserver_manager.publish_coveragestore(data_coverage)
```
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file GeobricksGeoserverManager-0.1.0.tar.gz.
File metadata
- Download URL: GeobricksGeoserverManager-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff5420c9d2f5ef5ab49c82aa33036851998ff77749aa44d8c273f971718b2347
|
|
| MD5 |
72820ad4ca05b2aaa0786ef17dc7a279
|
|
| BLAKE2b-256 |
af6e030550568a0a5d37a827849b4e664cb9535698b2f43f44d9a52b41a6abd4
|