Pygeoutils

Latest version: v0.19.5

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

Scan your dependencies

Page 1 of 8

0.19.5

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

Internal Changes
~~~~~~~~~~~~~~~~
- Use ``json`` instead of ``ujson`` due to the package not being
maintained anymore.
- Use ``numbers.Number`` instead of ``np.number`` for type checking
as it's indicated in the ``numpy`` documentation.

0.19.0

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

New Features
~~~~~~~~~~~~
- Add a function called ``sample_window`` to remsample a raster dataset
using a window size and a ``rasterio`` supported resampling method.
This is an efficient way of sampling large raster datasets without
reading the entire dataset into memory. The function returns a generator
that yields the sampled values in the order of the input coordinates.
This function is based on the ``rasterio.sample.sample_gen`` function.
- Add a function called ``geo_transform`` for transforming any Shapely geometry
to a new CRS. It could be a single geometry or an array of geometries.

0.18.0

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

New Features
~~~~~~~~~~~~
- Add a function called ``achored_amoothin``to smooth a ``LineString`` using
Cubnic splines that anchores the first and last points of the ``LineString``.
- Add a function called ``smooth_multilinestring`` to smooth a ``MultiLineString``
using the new ``anchored_smoothin`` function.
- In ``line_curvature`` use ``spline_curvature`` to calculate the curvature
of a ``LineString`` at all points along the ``LineString``. This is more
accurate than the previous method and users can now specify the smoothing
factor (``s``) and degree of the spline (``k``) to control the smoothness
of the spline that is used to calculate the curvature.

Breaking Changes
~~~~~~~~~~~~~~~~
- Drop support for Python 3.8 since its end-of-life date is October 2024.
- Remove all exceptions from the main module and raise them from the
``exceptions`` module. This is to declutter the public API and make
it easier to maintain.

Internal Changes
~~~~~~~~~~~~~~~~
- Move all spline and smoothing functions to a new module called ``smoothing``.

0.17.1

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

Internal Changes
~~~~~~~~~~~~~~~~
- Drop support for Python 3.8 since its end-of-life date is October 2024.

0.16.3

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

Internal Changes
~~~~~~~~~~~~~~~~
- Add the ``exceptions`` module to the high-level API to declutter
the main module. In the future, all exceptions will be raised from
this module and not from the main module. For now, the exceptions
are raised from both modules for backward compatibility.
- Switch to using the ``src`` layout instead of the ``flat`` layout
for the package structure. This is to make the package more
maintainable and to avoid any potential conflicts with other
packages.
- Improve robustness of ``json2geodf`` by ensuring that all geojsons are in
the same CRS.

0.16.1

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

Bug Fixes
~~~~~~~~~
- ``pyproj`` uses its own env variables for SSL certification. This release
fixes the issue with ``pyproj`` not being able to download the grid database
when using DOI SSL certification file. This release uses
``pyproj.network.set_ca_bundle_path`` for setting the SSL certification file
given by the user via ``HYRIVER_SSL_CERT`` env variable.
- Ignore ``FutureWarning`` of pandas 2.1.0 for all-NaN columns in ``json2geodf``.

Internal Changes
~~~~~~~~~~~~~~~~
- For ``Attrs`` class, use ``dataclass`` instead for better performance
and consistency.

Page 1 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.