summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 05:29:02 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 05:29:02 +0000
commit606e789f9a8beef16b072c61dcc7f678456a4932 (patch)
tree3f50bb854728aaed2b1df89ee7c361dc8249bf2b
parent213fe9b0a8a57efd4f641fc0e4d5cab221d839c9 (diff)
automatic import of python-geoserver-rest
-rw-r--r--.gitignore1
-rw-r--r--python-geoserver-rest.spec371
-rw-r--r--sources1
3 files changed, 373 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7db5658 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/geoserver-rest-2.4.1.tar.gz
diff --git a/python-geoserver-rest.spec b/python-geoserver-rest.spec
new file mode 100644
index 0000000..21f5299
--- /dev/null
+++ b/python-geoserver-rest.spec
@@ -0,0 +1,371 @@
+%global _empty_manifest_terminate_build 0
+Name: python-geoserver-rest
+Version: 2.4.1
+Release: 1
+Summary: Package for GeoServer rest API
+License: MIT License
+URL: https://github.com/iamtekson/geoserver-rest-python
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b0/43/1fb147f6f7bcad87aec064ae175f6a07c6ebc9daea86534126f7df43370c/geoserver-rest-2.4.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-pygments
+Requires: python3-requests
+Requires: python3-seaborn
+Requires: python3-gdal
+Requires: python3-matplotlib
+Requires: python3-xmltodict
+Requires: python3-pytest
+Requires: python3-black
+Requires: python3-flake8
+Requires: python3-sphinx
+Requires: python3-pre-commit
+
+%description
+# Python wrapper for GeoServer REST API
+
+[![Downloads](https://pepy.tech/badge/geoserver-rest)](https://pepy.tech/project/geoserver-rest)
+[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
+
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+[![flake8](https://img.shields.io/badge/linter-flake8-green)](https://flake8.pycqa.org/)
+[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
+[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
+
+## Full documentation
+
+The documentation for this project is moved here: [https://geoserver-rest.readthedocs.io/](https://geoserver-rest.readthedocs.io/).
+
+## Overview
+
+The `geoserver-rest` package is useful for the management of geospatial data in [GeoServer](http://geoserver.org/). The package is useful for the creating, updating and deleting geoserver workspaces, stores, layers, and style files.
+
+## Installation
+
+```python
+conda install -c conda-forge geoserver-rest
+```
+
+For the `pip` installation, check the [official documentation of geoserver-rest](https://geoserver-rest.readthedocs.io/en/latest/installation.html)
+
+## Some examples
+
+Please check the [https://geoserver-rest.readthedocs.io/](https://geoserver-rest.readthedocs.io/) for full documentation.
+
+```python
+# Import the library
+from geo.Geoserver import Geoserver
+
+# Initialize the library
+geo = Geoserver('http://127.0.0.1:8080/geoserver', username='admin', password='geoserver')
+
+# For creating workspace
+geo.create_workspace(workspace='demo')
+
+# For uploading raster data to the geoserver
+geo.create_coveragestore(layer_name='layer1', path=r'path\to\raster\file.tif', workspace='demo')
+
+# For creating postGIS connection and publish postGIS table
+geo.create_featurestore(store_name='geo_data', workspace='demo', db='postgres', host='localhost', pg_user='postgres',
+ pg_password='admin')
+geo.publish_featurestore(workspace='demo', store_name='geo_data', pg_table='geodata_table_name')
+
+# For uploading SLD file and connect it with layer
+geo.upload_style(path=r'path\to\sld\file.sld', workspace='demo')
+geo.publish_style(layer_name='geoserver_layer_name', style_name='sld_file_name', workspace='demo')
+
+# For creating the style file for raster data dynamically and connect it with layer
+geo.create_coveragestyle(raster_path=r'path\to\raster\file.tiff', style_name='style_1', workspace='demo',
+ color_ramp='RdYiGn')
+geo.publish_style(layer_name='geoserver_layer_name', style_name='raster_file_name', workspace='demo')
+
+# delete workspace
+geo.delete_workspace(workspace='demo')
+
+# delete layer
+geo.delete_layer(layer_name='agri_final_proj', workspace='demo')
+
+# delete style file
+geo.delete_style(style_name='kamal2', workspace='demo')
+```
+
+## Citation
+
+Full paper is available here: https://doi.org/10.5194/isprs-archives-XLVI-4-W2-2021-91-2021
+
+```
+@Article{isprs-archives-XLVI-4-W2-2021-91-2021,
+ AUTHOR = {Tek Bahadur Kshetri, Angsana Chaksana and Shraddha Sharma},
+ TITLE = {THE ROLE OF OPEN-SOURCE PYTHON PACKAGE GEOSERVER-REST IN WEB-GIS DEVELOPMENT},
+ JOURNAL = {The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences},
+ VOLUME = {XLVI-4/W2-2021},
+ YEAR = {2021},
+ PAGES = {91--96},
+ URL = {https://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XLVI-4-W2-2021/91/2021/},
+ DOI = {10.5194/isprs-archives-XLVI-4-W2-2021-91-2021}
+ }
+```
+
+## Contribution
+
+Geoserver-rest is the open source library written in python and contributors are needed to keep this library moving forward. Any kind of contributions are welcome. Here are the basic rule for the new contributors:
+
+1. Please use the request library for the http request.
+2. One feature per pull request (If the PR is huge, you need to create a issue and discuss).
+3. Please add the update about your PR on the [change log documentation](https://github.com/gicait/geoserver-rest/blob/master/docs/source/change_log.rst#master-branch) as well.
+
+
+## Acknowledgements
+
+Created and managed by [Tek Bahadur Kshetri](http://tekkshetri.com.np/) for the activites of Geoinformatics Center of Asian Institute of Technology, Thailand.
+
+
+%package -n python3-geoserver-rest
+Summary: Package for GeoServer rest API
+Provides: python-geoserver-rest
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-geoserver-rest
+# Python wrapper for GeoServer REST API
+
+[![Downloads](https://pepy.tech/badge/geoserver-rest)](https://pepy.tech/project/geoserver-rest)
+[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
+
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+[![flake8](https://img.shields.io/badge/linter-flake8-green)](https://flake8.pycqa.org/)
+[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
+[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
+
+## Full documentation
+
+The documentation for this project is moved here: [https://geoserver-rest.readthedocs.io/](https://geoserver-rest.readthedocs.io/).
+
+## Overview
+
+The `geoserver-rest` package is useful for the management of geospatial data in [GeoServer](http://geoserver.org/). The package is useful for the creating, updating and deleting geoserver workspaces, stores, layers, and style files.
+
+## Installation
+
+```python
+conda install -c conda-forge geoserver-rest
+```
+
+For the `pip` installation, check the [official documentation of geoserver-rest](https://geoserver-rest.readthedocs.io/en/latest/installation.html)
+
+## Some examples
+
+Please check the [https://geoserver-rest.readthedocs.io/](https://geoserver-rest.readthedocs.io/) for full documentation.
+
+```python
+# Import the library
+from geo.Geoserver import Geoserver
+
+# Initialize the library
+geo = Geoserver('http://127.0.0.1:8080/geoserver', username='admin', password='geoserver')
+
+# For creating workspace
+geo.create_workspace(workspace='demo')
+
+# For uploading raster data to the geoserver
+geo.create_coveragestore(layer_name='layer1', path=r'path\to\raster\file.tif', workspace='demo')
+
+# For creating postGIS connection and publish postGIS table
+geo.create_featurestore(store_name='geo_data', workspace='demo', db='postgres', host='localhost', pg_user='postgres',
+ pg_password='admin')
+geo.publish_featurestore(workspace='demo', store_name='geo_data', pg_table='geodata_table_name')
+
+# For uploading SLD file and connect it with layer
+geo.upload_style(path=r'path\to\sld\file.sld', workspace='demo')
+geo.publish_style(layer_name='geoserver_layer_name', style_name='sld_file_name', workspace='demo')
+
+# For creating the style file for raster data dynamically and connect it with layer
+geo.create_coveragestyle(raster_path=r'path\to\raster\file.tiff', style_name='style_1', workspace='demo',
+ color_ramp='RdYiGn')
+geo.publish_style(layer_name='geoserver_layer_name', style_name='raster_file_name', workspace='demo')
+
+# delete workspace
+geo.delete_workspace(workspace='demo')
+
+# delete layer
+geo.delete_layer(layer_name='agri_final_proj', workspace='demo')
+
+# delete style file
+geo.delete_style(style_name='kamal2', workspace='demo')
+```
+
+## Citation
+
+Full paper is available here: https://doi.org/10.5194/isprs-archives-XLVI-4-W2-2021-91-2021
+
+```
+@Article{isprs-archives-XLVI-4-W2-2021-91-2021,
+ AUTHOR = {Tek Bahadur Kshetri, Angsana Chaksana and Shraddha Sharma},
+ TITLE = {THE ROLE OF OPEN-SOURCE PYTHON PACKAGE GEOSERVER-REST IN WEB-GIS DEVELOPMENT},
+ JOURNAL = {The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences},
+ VOLUME = {XLVI-4/W2-2021},
+ YEAR = {2021},
+ PAGES = {91--96},
+ URL = {https://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XLVI-4-W2-2021/91/2021/},
+ DOI = {10.5194/isprs-archives-XLVI-4-W2-2021-91-2021}
+ }
+```
+
+## Contribution
+
+Geoserver-rest is the open source library written in python and contributors are needed to keep this library moving forward. Any kind of contributions are welcome. Here are the basic rule for the new contributors:
+
+1. Please use the request library for the http request.
+2. One feature per pull request (If the PR is huge, you need to create a issue and discuss).
+3. Please add the update about your PR on the [change log documentation](https://github.com/gicait/geoserver-rest/blob/master/docs/source/change_log.rst#master-branch) as well.
+
+
+## Acknowledgements
+
+Created and managed by [Tek Bahadur Kshetri](http://tekkshetri.com.np/) for the activites of Geoinformatics Center of Asian Institute of Technology, Thailand.
+
+
+%package help
+Summary: Development documents and examples for geoserver-rest
+Provides: python3-geoserver-rest-doc
+%description help
+# Python wrapper for GeoServer REST API
+
+[![Downloads](https://pepy.tech/badge/geoserver-rest)](https://pepy.tech/project/geoserver-rest)
+[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
+
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+[![flake8](https://img.shields.io/badge/linter-flake8-green)](https://flake8.pycqa.org/)
+[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
+[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
+
+## Full documentation
+
+The documentation for this project is moved here: [https://geoserver-rest.readthedocs.io/](https://geoserver-rest.readthedocs.io/).
+
+## Overview
+
+The `geoserver-rest` package is useful for the management of geospatial data in [GeoServer](http://geoserver.org/). The package is useful for the creating, updating and deleting geoserver workspaces, stores, layers, and style files.
+
+## Installation
+
+```python
+conda install -c conda-forge geoserver-rest
+```
+
+For the `pip` installation, check the [official documentation of geoserver-rest](https://geoserver-rest.readthedocs.io/en/latest/installation.html)
+
+## Some examples
+
+Please check the [https://geoserver-rest.readthedocs.io/](https://geoserver-rest.readthedocs.io/) for full documentation.
+
+```python
+# Import the library
+from geo.Geoserver import Geoserver
+
+# Initialize the library
+geo = Geoserver('http://127.0.0.1:8080/geoserver', username='admin', password='geoserver')
+
+# For creating workspace
+geo.create_workspace(workspace='demo')
+
+# For uploading raster data to the geoserver
+geo.create_coveragestore(layer_name='layer1', path=r'path\to\raster\file.tif', workspace='demo')
+
+# For creating postGIS connection and publish postGIS table
+geo.create_featurestore(store_name='geo_data', workspace='demo', db='postgres', host='localhost', pg_user='postgres',
+ pg_password='admin')
+geo.publish_featurestore(workspace='demo', store_name='geo_data', pg_table='geodata_table_name')
+
+# For uploading SLD file and connect it with layer
+geo.upload_style(path=r'path\to\sld\file.sld', workspace='demo')
+geo.publish_style(layer_name='geoserver_layer_name', style_name='sld_file_name', workspace='demo')
+
+# For creating the style file for raster data dynamically and connect it with layer
+geo.create_coveragestyle(raster_path=r'path\to\raster\file.tiff', style_name='style_1', workspace='demo',
+ color_ramp='RdYiGn')
+geo.publish_style(layer_name='geoserver_layer_name', style_name='raster_file_name', workspace='demo')
+
+# delete workspace
+geo.delete_workspace(workspace='demo')
+
+# delete layer
+geo.delete_layer(layer_name='agri_final_proj', workspace='demo')
+
+# delete style file
+geo.delete_style(style_name='kamal2', workspace='demo')
+```
+
+## Citation
+
+Full paper is available here: https://doi.org/10.5194/isprs-archives-XLVI-4-W2-2021-91-2021
+
+```
+@Article{isprs-archives-XLVI-4-W2-2021-91-2021,
+ AUTHOR = {Tek Bahadur Kshetri, Angsana Chaksana and Shraddha Sharma},
+ TITLE = {THE ROLE OF OPEN-SOURCE PYTHON PACKAGE GEOSERVER-REST IN WEB-GIS DEVELOPMENT},
+ JOURNAL = {The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences},
+ VOLUME = {XLVI-4/W2-2021},
+ YEAR = {2021},
+ PAGES = {91--96},
+ URL = {https://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XLVI-4-W2-2021/91/2021/},
+ DOI = {10.5194/isprs-archives-XLVI-4-W2-2021-91-2021}
+ }
+```
+
+## Contribution
+
+Geoserver-rest is the open source library written in python and contributors are needed to keep this library moving forward. Any kind of contributions are welcome. Here are the basic rule for the new contributors:
+
+1. Please use the request library for the http request.
+2. One feature per pull request (If the PR is huge, you need to create a issue and discuss).
+3. Please add the update about your PR on the [change log documentation](https://github.com/gicait/geoserver-rest/blob/master/docs/source/change_log.rst#master-branch) as well.
+
+
+## Acknowledgements
+
+Created and managed by [Tek Bahadur Kshetri](http://tekkshetri.com.np/) for the activites of Geoinformatics Center of Asian Institute of Technology, Thailand.
+
+
+%prep
+%autosetup -n geoserver-rest-2.4.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-geoserver-rest -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2cad2d1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0c93761df89f8110ec9e134a6eb9e38a geoserver-rest-2.4.1.tar.gz