Python API for configuring and interacting with GeoServer. Wraps around the official HTTP Rest API
Project description
GeoServer Config
Configuration for geoserver and additional resources needed to host stuff there.
Docker in EC2
EC2 Setup
Launch an instance using this user data. It is recommended the instance to have >=8Gb RAM and >=30Gb ephemeral storage. A good alternative is the t3.large
which costs ~60 USD/month as of 02/10/2023.
Connect to your instance and add docker to user group by running:
sudo usermod -aG docker $USER
newgrp docker # restarts docker
Launch Geoserver
Pull the geoserver image:
docker pull docker.osgeo.org/geoserver:2.23.x
Now run the container, installing COG extension and using a local data directory at /MY/DATADIRECTORY
. As detailed in the documentation: this setup allows direct management of the file data shared with the container. This setup is also easy to update to use the latest container.
docker run --mount type=bind,src=/MY/DATADIRECTORY,target=/opt/geoserver_data -it -p8080:8080 --env INSTALL_EXTENSIONS=true --env COMMUNITY_EXTENSIONS="cog" --env JAVA_TOOL_OPTIONS="-Xmx4096m" docker.osgeo.org/geoserver:2.23.x
The JAVA_TOOL_OPTIONS
is important to increase the maximum hava heap size available for the app. The example command provided earlier sets this limit on ~4Gb For coverage stores, a large heap size is necessary since there is a lot of data to bring. You can adjust it according to your use case. Run java -XX:+PrintFlagsFinal -version | grep MaxHeapSize
for getting the max heat space in the docker container.
Optimization of Geoserver ImageMosaic
Example Notebooks
- Coverage Store using Cog Images: setup a WMS/WMTS-T service using COG rasters located in cloud storage
TODO
- Fix creating new datastore with existing database index: geoserver repo issue
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
Built Distribution
File details
Details for the file geoserver_api-0.1.0.tar.gz
.
File metadata
- Download URL: geoserver_api-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.9 Linux/6.5.0-18-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 369243b60845ec4cf79ce0a789fbf3107a8b99f7b3ef61a3b07468474edb1f79 |
|
MD5 | 8c903d245f702145deb30d53406e7db4 |
|
BLAKE2b-256 | b5babf8131aeaf2da4c3981a46a26fcb538b0323746d4b55b3f662f52813dfbe |
File details
Details for the file geoserver_api-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: geoserver_api-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.9 Linux/6.5.0-18-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb72cc82503f07ce5e6976f09ff9e0986189d74252051b10815d4f6a5feb7679 |
|
MD5 | 9611e9bdde23c11948f1bc22a6dfcdaa |
|
BLAKE2b-256 | 1bf3a48fc3695406fc15a00ab09543dc5a153999520aee38068ff7fdff7ecc5d |