Releases: sertit/sertit-utils
Releases · sertit/sertit-utils
v1.41.0
1.41.0 (2024-08-06)
- BREAKING CHANGE: Renaming of
rasters(_rio).get_nodata_value
function torasters(_rio).get_nodata_value_from_dtype
. Older function is deprecated. - ENH: Creating
rasters.get_nodata_value_from_xr
to retrieve the nodata value as specified byrioxarray
- FIX: Fix handling of nodata with xarray structures in
sertit.rasters
- FIX: Handle None cases in
ci.assert_val
- CI: [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #21
v1.40.0
1.40.0 (2024-08-05)
- BREAKING CHANGE: Renaming of
rasters.path_xarr_dst
function torasters.any_raster_to_xr_ds
. Older function is deprecated. - BREAKING CHANGE: Renaming of
rasters_rio.path_arr_dst
function torasters_rio.any_raster_to_rio_ds
. Older function is deprecated. - BREAKING CHANGE: Creating
types.AnyRasterType
instead ofrasters.PATH_XARR_DS
andrasters_rio.PATH_ARR_DS
. Older types are deprecated. - ENH: Creating
types.AnyRioDatasetType
for any rasterio Dataset (both Reader, Writer) - ENH: Creating
types.AnyVectorType
for any vector (path or GeoDataFrame) - ENH: Adding the file path and name in the vector attributes (in
vec.attrs["path"]
andvec.attrs["name"]
) withvectors.read
v1.39.1
1.39.1 (2024-07-29)
- FIX: Allow the user not to convert Nones in
types.make_iterable
(withconvert_none
keyword) - FIX: Allow the user not to take strings as iterables
types.make_iterable
andtypes.is_iterable
(withstr_allowed
keyword)
v1.39.0
1.39.0 (2024-07-29)
- ENH: Add
types.make_iterable
andtypes.is_iterable
functions - Switch to
main
branch
v1.38.0
1.38.0 (2024-07-26)
- ENH: Manage
geopandas>=1.0
and its default enginepyogrio
:- ENH: Add function
vectors.is_geopandas_1_0
- FIX: Manage the duality of exceptions between
fiona
andpyogrio
forDriverError
/DataSourceError
- FIX: Handle null GMLs with
pyogrio
engine - FIX: Workaround for KMZ issue with
geopandas > 1.0
andpyogrio < 0.10.0
(GitHub issue)
- ENH: Add function
- ENH: Add a function
misc.compare_version
to compare a library version to a reference version according to an operator given by the user - ENH: Add a function
misc.compare
to compare two objects according to an operator given by the user - FIX: Make
path.get_archived_path
function case-insensitive by default - FIX: Fix
path.get_filename
for a file in a zip path - FIX: Handle fiona not installed in the environment (#20)
- CI: Minor fix in CI scripts to handle
numpy>=2.0
updates
v1.37.2
1.37.2 (2024-05-22)
- FIX: Don't set endpoint_url in s3 if environment variable is empty
v1.37.1
1.37.1 (2024-05-22)
- FIX: Don't set endpoint_url in s3 if environment variable is empty
v1.37.0
v1.36.1
1.36.1 (2024-03-26)
- FIX: Fix
vector._read_vector_core
when we convert a GML file from S3 to geojson with ogr2ogr (#12) - FIX: Fix
files.extract_file
when there is a file in the root of the zip archive (#11) - FIX: Fix
geometry.nearest_neighbors
when k is bigger than the number of candidates - FIX: Add a
buffer_on_input
ingeometry.intersects
to manage edge cases when points on polygons boundary aren't seen as intersecting - FIX:
rasters.read
acceptsxarray
objects as input - FIX: Sanitize imports
- DOC: Update some examples in documentation
v1.36.0
1.36.0 (2024-02-27)
- BREAKING CHANGE: Rename
feature_layer_to_path
togp_layer_to_path
- BREAKING CHANGE: Rename
rasters(_rio).get_nodata_mask
torasters(_rio).get_data_mask
to better fit with its behaviour (1 where data is valid, 0 elsewhere) - ENH: Add
geometry.intersects
to find polygons intersecting with other polygons (wrapper ofgeopandas.intersects
that works only row-wise) - ENH: Add
geometry.line_merge
to useshapely.line_merge
on GeoDataFrames - ENH: Add
geometry.buffer
(usinggpd.buffer
) to return a GeoDataFrame instead of a GeoSeries - ENH: Add
geometry.nearest_neighbors
to get the nearest neighbors from each point of a Point GeoDataFrame in another one (two methods,k_neighbors
andradius
). Needssklearn
. - FIX: Ignore when trying to split polygons with points
- FIX: Make
ci.assert_val
work for Iterables - DOC: Numerous documentation updates to better use Sphinx syntax