Skip to content

Commit d67eab9

Browse files
authored
Merge pull request #36 from gicait/v2.0.0
python request implementation
2 parents 4b51480 + d8f922f commit d67eab9

14 files changed

+318
-1071
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ venv/
22
data/
33
style.sld
44
.vscode/
5+
FunctionsToImplement.py
6+
record.txt
7+
package_test.py
58

69
# Created by https://www.toptal.com/developers/gitignore/api/python
710
# Edit at https://www.toptal.com/developers/gitignore?templates=python

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Geoserver-rest is an open source library written in python and contributors are
44

55
# Guidelines
66

7-
1. Please use the pycurl or request library for the http request.
7+
1. Please use the request library for the http request.
88
2. One feature per pull request.

docs/source/change_log.rst

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ Change Log
44
``Master branch``
55
^^^^^^^^^^^^^^^^^
66

7+
``[V2.0.0 - 2021-05-28]``
8+
^^^^^^^^^^^^^^^^^^^^^^^^^^
9+
* Fully replaced the `pycurl <http://pycurl.io/>`_ dependency with `request` and `psycopg2 <https://www.psycopg.org/>`_
10+
* Dropped the PostgreSQL functionalities (deleted ``geo/Postgres.py`` file). I think the functionalities of PostgreSQL is outside the scope of this library. So I initiated the seperated library `postgres-helper <https://postgres-helper.readthedocs.io/en/latest/>`_
11+
* Documentation adjustments
12+
* The ``overwrite`` options removed from ``create_coveragestore``, ``create_coveragestyle`` and other style functions
13+
714

815
``[V1.6.0 - 2021-04-13]``
9-
^^^^^^^^^^^^^^^^^^^^^^^^
16+
^^^^^^^^^^^^^^^^^^^^^^^^^^
1017

1118
* Documentation adjustments (bunch of Sphinx-docs formatting fixes and English corrections)
1219
* Add black and pre-commit

docs/source/how_to_use.rst

+1-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ It is helpful for publishing the raster data to the geoserver. Here if you don't
3333
.. note::
3434
If your raster is not loading correctly, please make sure you assign the coordinate system for your raster file.
3535

36-
If the `layername` already exists in geoserver, you can additionall pass the parameter ``overwrite=True``,
37-
38-
.. code-block:: python
39-
40-
geo.create_coveragestore(layer_name='layer1', path=r'path\to\raster\file.tif', workspace='demo', overwrite=True)
36+
If the ``layer_name`` already exists in geoserver, it will automatically overwrite the previous one.
4137

4238

4339
Creating and publishing featurestores and featurestore layers

docs/source/installation.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,18 @@ Pip installation
1818
For installation of this package, following packages should be installed first:
1919

2020
* `GDAL <https://gdal.org/>`_
21-
* `Pycurl <http://pycurl.io/>`_ (This dependency will be replaced by python request in v2.0.0)
2221

2322

2423
Windows installation
2524
--------------------
2625

27-
In windows, the ``gdal`` and ``pycurl`` dependencies can be install using ``pipwin``,
26+
In windows, the ``gdal`` dependency can be install using ``pipwin``,
2827

2928
.. code-block:: shell
3029
3130
pip install pipwin
3231
pipwin refresh
3332
pipwin install gdal
34-
pipwin install pycurl
3533
3634
Now you can install the library using pip install command,
3735

@@ -43,13 +41,13 @@ Now you can install the library using pip install command,
4341
Linux installation
4442
------------------
4543

46-
In Debian/Ubuntu, ``gdal`` and ``pycurl`` can be installed using following method:
44+
In Debian/Ubuntu, ``gdal`` can be installed using following method:
4745

4846
.. code-block:: shell
4947
5048
sudo add-apt-repository ppa:ubuntugis/ppa
5149
sudo apt update -y; sudo apt upgrade -y;
52-
sudo apt install gdal-bin libgdal-dev python3-pycurl
50+
sudo apt install gdal-bin libgdal-dev
5351
pip3 install pygdal=="`gdal-config --version`.*"
5452
5553
Now the geoserver-rest library can be installed using pip install command:

0 commit comments

Comments
 (0)