Skip to content

Releases: sertit/sertit-utils

v1.41.0

06 Aug 07:28
Compare
Choose a tag to compare

1.41.0 (2024-08-06)

  • BREAKING CHANGE: Renaming of rasters(_rio).get_nodata_value function to rasters(_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 by rioxarray
  • 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

05 Aug 10:25
Compare
Choose a tag to compare

1.40.0 (2024-08-05)

  • BREAKING CHANGE: Renaming of rasters.path_xarr_dst function to rasters.any_raster_to_xr_ds. Older function is deprecated.
  • BREAKING CHANGE: Renaming of rasters_rio.path_arr_dst function to rasters_rio.any_raster_to_rio_ds. Older function is deprecated.
  • BREAKING CHANGE: Creating types.AnyRasterType instead of rasters.PATH_XARR_DS and rasters_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"] and vec.attrs["name"]) with vectors.read

v1.39.1

29 Jul 12:53
Compare
Choose a tag to compare

1.39.1 (2024-07-29)

  • FIX: Allow the user not to convert Nones in types.make_iterable (with convert_none keyword)
  • FIX: Allow the user not to take strings as iterables types.make_iterable and types.is_iterable (with str_allowed keyword)

v1.39.0

29 Jul 11:01
Compare
Choose a tag to compare

1.39.0 (2024-07-29)

  • ENH: Add types.make_iterable and types.is_iterable functions
  • Switch to main branch

v1.38.0

26 Jul 15:37
Compare
Choose a tag to compare

1.38.0 (2024-07-26)

  • ENH: Manage geopandas>=1.0 and its default engine pyogrio:
    • ENH: Add function vectors.is_geopandas_1_0
    • FIX: Manage the duality of exceptions between fiona and pyogrio for DriverError/DataSourceError
    • FIX: Handle null GMLs with pyogrio engine
    • FIX: Workaround for KMZ issue with geopandas > 1.0 and pyogrio < 0.10.0 (GitHub issue)
  • 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

22 May 10:15
Compare
Choose a tag to compare

1.37.2 (2024-05-22)

  • FIX: Don't set endpoint_url in s3 if environment variable is empty

v1.37.1

22 May 10:04
Compare
Choose a tag to compare

1.37.1 (2024-05-22)

  • FIX: Don't set endpoint_url in s3 if environment variable is empty

v1.37.0

22 Apr 13:53
Compare
Choose a tag to compare

1.37.0 (2024-04-22)

  • ENH: Add AWS profile feature to s3 module
  • FIX: Fix files.extract_file when there are only files in the root of the zip archive (#14)
  • FIX: FIX metadata handling with rasters_rio.read when reading with indexes

v1.36.1

26 Mar 13:49
Compare
Choose a tag to compare

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 in geometry.intersects to manage edge cases when points on polygons boundary aren't seen as intersecting
  • FIX: rasters.read accepts xarray objects as input
  • FIX: Sanitize imports
  • DOC: Update some examples in documentation

v1.36.0

27 Feb 08:59
Compare
Choose a tag to compare

1.36.0 (2024-02-27)

  • BREAKING CHANGE: Rename feature_layer_to_path to gp_layer_to_path
  • BREAKING CHANGE: Rename rasters(_rio).get_nodata_mask to rasters(_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 of geopandas.intersects that works only row-wise)
  • ENH: Add geometry.line_merge to use shapely.line_merge on GeoDataFrames
  • ENH: Add geometry.buffer (using gpd.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 and radius). Needs sklearn.
  • 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