Pygeoogc

Latest version: v0.18.0

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

Scan your dependencies

Page 2 of 8

0.15.2

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

New Features
~~~~~~~~~~~~
- Added RESTfulURLs for FEMA's National Flood Hazard Layer (NFHL) service.
Contributed by `Fernando Aristizabal <https://github.com/fernando-aristizabal>`__.
(:pull_ogc:`62`)
- Now, ``RetrySession`` can be used as a context manager. This is useful for
closing the session after using it. For example:

.. code-block:: python

from pygeoogc import RetrySession

with RetrySession() as session:
r = session.get("https://httpbin.org/get").json()

Internal Changes
~~~~~~~~~~~~~~~~
- Improve the example in the docstring of ``traverse_json`` function.
- Improve exception handling in the ``ArcGISRESTful`` class and return
a more informative error message.

0.15.1

-------------------
From release 0.15 onward, all minor versions of HyRiver packages
will be pinned. This ensures that previous minor versions of HyRiver
packages cannot be installed with later minor releases. For example,
if you have ``pygeoogc==0.14.x`` installed, you cannot install
``pygeoogc==0.15.x`` series. This is to ensure that the API is
consistent across all minor versions.

New Features
~~~~~~~~~~~~
- Add the STN Flood Event Data URL to the list of RESTfuls.
Contributed by `Fernando Aristizabal <https://github.com/fernando-aristizabal>`_.
(:pull_ogc:`59`)
- Add the link for the eHydro's web service.

0.15.0

-------------------
From release 0.15 onward, all minor versions of HyRiver packages
will be pinned. This ensures that previous minor versions of HyRiver
packages cannot be installed with later minor releases. For example,
if you have ``pygeoogc==0.14.x`` installed, you cannot install
``pygeoogc==0.15.x`` series. This is to ensure that the API is
consistent across all minor versions.

New Features
~~~~~~~~~~~~
- For now, retain compatibility with ``shapely<2`` while supporting
``shapley>=2``.

Bug Fixes
~~~~~~~~~
- Fix an issue in ``WFS`` where the ``getfeature_bygeom`` method
fails if the requested web service does not have ``geometry_column``
attribute in its schema. This release addresses this issue by
trying to find the name from other attributes in the schema.
If it fails to find, it raises a ``ValueError``.
- Catch an edge case in ``match_crs`` function where the input is
a list of coordinates of length 4.
- Give precedence to non-default arguments for caching related arguments
instead of directly getting them from env variables. This is to avoid
the case where the user sets the env variables but then passes different
arguments to the function. In this case, the function should use the
passed arguments instead of the env variables.

Internal Changes
~~~~~~~~~~~~~~~~
- Remove ``pyyaml`` as a dependency since it is not used anymore.

0.14.0

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

Breaking Changes
~~~~~~~~~~~~~~~~
- Bump the minimum required version of ``shapely`` to 2.0,
and use its new API.

Internal Changes
~~~~~~~~~~~~~~~~
- Sync all minor versions of HyRiver packages to 0.14.0.

0.13.12

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

New Features
~~~~~~~~~~~~
- Make ``match_crs`` less strict in terms of the input geometry type
being ``tuple`` or ``list`` by relying on ``shapely`` and
``contextlib.suppress``. So, now users can pass any combination of
``list`` or ``tuple`` as coordinates or bounding box.
- More robust handling of inputs and outputs in ``streaming_download``.
Now, only if input is ``str`` the function returns a single ``Path`` object.
Previously if there was only one URL, whether ``list`` of length one or
``str``, the output was a single ``Path``, which could have had unintended
consequences.

Bug Fixes
~~~~~~~~~
- In ``WFS`` when some layers have missing schema info, the class failed
to initialize. This release fixes this issue by ignoring layers with
missing schema info and asks the user to pass a sort parameter instead
of trying to automatically find a sort parameter. This fix also improves
the performance of this function by making fewer web requests.

Internal Changes
~~~~~~~~~~~~~~~~
- Fully migrate ``setup.cfg`` and ``setup.py`` to ``pyproject.toml``.
- Convert relative imports to absolute with ``absolufy-imports``.
- Sync all patch versions of HyRiver packages to x.x.12.

0.13.10

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

Bug Fixes
~~~~~~~~~
- Remove all Python 3.9 type-annotation-style in the codebase except for
function signatures to ensure compatibility with Python 3.8.
(:issue_ogc:`57`, :pull_ogc:`58`). Thanks to
`Tim Cera <https://github.com/timcera>`__ for reporting and fixing the
issue.

Internal Changes
~~~~~~~~~~~~~~~~
- Use ``pyright`` for type checking instead of ``mypy`` since it is faster
and more accurate. Also, fix all the type errors reported by ``pyright``.
- Improve code quality by addressing issues raised by
`DeepSource <https://deepsource.io/gh/hyriver/pygeoogc>`__.

Page 2 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.