Pygeoutils

Latest version: v0.18.0

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

Scan your dependencies

Page 1 of 7

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.

0.16.0

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

Breaking Changes
~~~~~~~~~~~~~~~~
- Refactor the spline generation functions to make them more efficient,
more accurate, and more robust. Switched to using ``UnivariateSpline``
from ``scipy`` instead of ``BSpline``. This allows for more control
over smoothness of the spline via the ``smooth`` parameter.
References to BSpline has been removed from the functions and a new
functionality has been added. The new spline generation functions
are ``GeoSpline``, ``make_spline``, ``spline_linestring``,
``smooth_linestring``, ``spline_curvature``, and ``line_curvature``.
The ``smooth_linestring`` function now returns a ``LineString`` instead
of a ``Spline`` object. This function is intended for smoothing a
``LineString`` when curvature, radius of curvature, and tangent angles
are not needed. The ``spline_linestring`` function now returns a
``Spline`` object that contains the smoothed ``LineString`` and
curvature, radius of curvature, and tangent angles. Also, ``line_curvature``
function can be used to compute curvature, radius of curvature, and
tangent angles of a ``LineString`` at all point along the ``LineString``.

New Features
~~~~~~~~~~~~
- Add a new function called ``gtiff2vrt`` for creating a VRT file
from a list of GeoTiff files. Note that this new function requires
``gdal`` to be installed.
- The ``xd_write_crs`` function now keeps ``spatial_ref`` attribute
of the input ``xarray.DataArray`` or ``xarray.Dataset`` to retain
CF compliance.

0.15.2

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

New Features
~~~~~~~~~~~~
- Add ``geometry_reproject`` function for reprojecting a geometry
(bounding box, list of coordinates, or any ``shapely.geometry``) to
a new CRS.
- Add ``smooth_linestring`` function for smoothing a ``LineString``
using B-splines.
- Make ``make_bspline`` and ``bspline_curvature`` functions public.
The ``make_bspline`` function uses ``scipy`` to generate a ``BSplines``
object and the ``bspline_curvature`` function calculates the tangent
angles, curvature, and radius of curvature of a B-spline at any point
along the B-spline.
- Improve the accuracy and performance of B-spline generation functions.

Internal Changes
~~~~~~~~~~~~~~~~
- Remove dependency on ``dask``.

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.