Pygeoogc

Latest version: v0.16.3

Safety actively analyzes 630052 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 7

0.13.7

-------------------

New Features
~~~~~~~~~~~~
- Add a new method to ``RetrySession`` for getting the request head called
``RetrySession.head``. This is useful for getting the headers of a request
without having to make a full request which is useful for getting the
``Content-Length`` header for example, i.e., download size.

Bug Fixes
~~~~~~~~~
- Fix an issue in the decompose function, ``utils.bbox_decompose``, where the generated
bounding boxes might overlap in some cases. A new approach has been implemented based
on finding the number of required bounding boxes from max allowable no. of pixels and
total requested pixels without changing the input bounding box projection. This ensures
that the decomposed bounding boxes are not overlapping so ``xarray.open_mfdataset``
can be used without any issues.

Internal Changes
~~~~~~~~~~~~~~~~
- In the ``utils.match_crs`` function, don't perform any projection if the source
target CRS are the same.
- Improve type hints for CRS-related arguments of all functions by including string,
integer, and ``pyproj.CRS`` types.
- Add a new class method to ``WMSBase`` and ``WFSBase`` classes called
``get_service_options`` for retrieving the available layers, output formats, and
CRSs for a given service. Here's an example:
- Use ``pyupgrade`` package to update the type hinting annotations
to Python 3.10 style.

.. code-block:: python

from pygeoogc.core import WMSBase

url = "https://elevation.nationalmap.gov/arcgis/services/3DEPElevation/ImageServer/WMSServer"
wms = WMSBase(url, validation=False)
wms.get_service_options()
print(wms.available_layer)

0.13.6

-------------------

Internal Changes
~~~~~~~~~~~~~~~~
- Add the missing PyPi classifiers for the supported Python versions.

0.13.5

-------------------

Breaking Changes
~~~~~~~~~~~~~~~~
- Append "Error" to all exception classes for conforming to PEP-8 naming conventions.

Internal Changes
~~~~~~~~~~~~~~~~
- Bump minimum version of ``owslib`` to 0.27.2 since the ``pyproj`` incompatibility issue
has been addressed in this issue.
- Bump minimum version of ``requests-cache`` to 0.9.6 since the ``attrs`` version issue
has been addressed.

0.13.3

-------------------

New Features
~~~~~~~~~~~~
- Add support for disabling persistent caching in ``RetrySession``
via an argument and also ``HYRIVER_CACHE_DISABLE`` environmental variable.

0.13.2

-------------------

Breaking Changes
~~~~~~~~~~~~~~~~
- Set the minimum supported version of Python to 3.8 since many of the
dependencies such as ``xarray``, ``pandas``, ``rioxarray`` have dropped support
for Python 3.7.
- Pin ``owslib`` to version <0.26 since version 0.26 has pinned ``pyproj`` to
version <3.3 which is not compatible with ``rasterio`` on macOS.

Internal Changes
~~~~~~~~~~~~~~~~
- Use `micromamba <https://github.com/marketplace/actions/provision-with-micromamba>`__
for running tests
and use `nox <https://github.com/marketplace/actions/setup-nox>`__
for linting in CI.

0.13.1

-------------------

New Features
~~~~~~~~~~~~
- More robust handling of errors in ``ArcGISRESTful`` by catching ``None``
responses. Also, use the ``POST`` method for ``ArcGISRESTful.bysql`` since
the SQL Clause could be a long string.

Page 3 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.