Pygeoutils

Latest version: v0.18.0

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

Scan your dependencies

Page 4 of 7

0.12.3

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

New Features
~~~~~~~~~~~~
- Add a function called ``break_lines`` for breaking lines at given points.
- Add a function called ``snap2nearest`` for snapping points to the nearest
point on a line with a given tolerance. It accepts a ``geopandas.GeoSeries`` of
points and a ``geopandas.GeoSeries`` or ``geopandas.GeoDataFrame`` of lines. It
automatically snaps to the closest lines in the input data.

0.12.2

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

New Features
~~~~~~~~~~~~
- Add a new class called ``GeoBSpline`` that generates B-splines from a set of
coordinates. The ``spline`` attribute of this class has five attributes:
``x`` and ``y`` coordinates, ``phi`` and ``radius`` which are curvature and
radius of curvature, respectively, and ``distance`` which is the total distance
of each point along the B-spline from the starting points.
- Add a new class called ``Coordinates`` that validates a set of lon/lat coordinates.
It normalizes longitudes to the range [-180, 180) and has a ``points`` property
that is ``geopandas.GeoSeries`` with validated coordinates. It uses spatial indexing
to speed up the validation and should be able to handle large datasets efficiently.
- Make ``transform2tuple`` a public function.

Internal Changes
~~~~~~~~~~~~~~~~
- The ``geometry`` and ``geo_crs`` arguments of ``gtiff2xarray`` are now optional.
This is useful for cases when the input ``GeoTiff`` response is the results of
a bounding box query and there is no need for a geometry mask.
- Replace the missing values after adding geometry mask via ``xarray_geomask`` by the
``nodatavals`` attribute of the input ``xarray.DataArray`` or ``xarray.Dataset``.
Therefore, the data type of the input ``xarray.DataArray`` or ``xarray.Dataset``
is conserved.
- Expose ``connectivity`` argument of ``rasterio.features.shapes`` function in
``xarray2geodf`` function.
- Move all private functions to a new module to make the main module less cluttered.

0.12.1

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

Internal Changes
~~~~~~~~~~~~~~~~
- Refactor ``arcgis2geojson`` for better readability and maintainability.
- In ``arcgis2geojson`` set the geometry to null if its type is not supported,
such as curved polylines.

0.12.0

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

Internal Changes
~~~~~~~~~~~~~~~~
- Add all the missing types so ``mypy --strict`` passes.
- Bump version to 0.12.0 to match the release of ``pygeoogc``.

0.11.7

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

Internal Changes
~~~~~~~~~~~~~~~~
- Use ``rioxarray`` for dealing with ``GeoTIFF`` binaries since ``xarray``
deprecated the ``xarray.open_rasterio`` function, as it's discussed
in this `PR <https://github.com/pydata/xarray/pull/5808>`__.
- Use ``importlib-metadata`` for getting the version instead of ``pkg_resources``
to decrease import time as discussed in this
`issue <https://github.com/pydata/xarray/issues/5676>`__.

0.11.6

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

New Features
~~~~~~~~~~~~
- Add a new function, ``xarray2geodf``, to convert a ``xarray.DataArray`` to a
``geopandas.GeoDataFrame``.

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.