Skip to content

Releases: hyriver/pygeoogc

v0.18.0

05 Oct 15:27
Compare
Choose a tag to compare

Release Notes

New Features

  • Update the links for NLDI and PyGeoAPI web services to the latest addresses.

Bug Fixes

  • Fix a bug in WFS.getfeature_bygeom where if the input geometry is in a geographic CRS, the function fails to transform it correctly to the web service's CRS.

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 main module and make it easier to maintain.

v0.17.1

14 Sep 16:40
Compare
Choose a tag to compare

Release Notes

New Features

  • Update the links for FEMA web services to the latest addresses.
  • When the CRS of a WMS cannot be parsed throw a more informative error regarding the service being down (122{.interpreted-text role="issue_hydro"}).

Internal Changes

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

v0.17.0

05 Jul 18:38
Compare
Choose a tag to compare

Release Notes

Internal Changes

  • Make streaming_download more robust when encoutring request issues by returning None for those links that have failed to be processed, instead of throwing exceptions. So, for example, if only one link fails, the function will return a list of paths with None for the failed link.
  • In all requests by geometries, set the geometry precision to 6 decimal points to avoid issues with large decimal points.
  • 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.

v0.16.3

16 May 20:13
Compare
Choose a tag to compare

Release Notes

Internal Changes

  • Make streaming_download more robust when encoutring request issues by returning None for those links that have failed to be processed, instead of throwing exceptions. So, for example, if only one link fails, the function will return a list of paths with None for the failed link.
  • In all requests by geometries, set the geometry precision to 6 decimal points to avoid issues with large decimal points.
  • 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.

v0.16.2

25 Apr 02:54
Compare
Choose a tag to compare

Release Notes

Internal Changes

  • Remove the deprecated AirMap URL.

v0.16.1

15 Jan 18:29
Compare
Choose a tag to compare

Release Notes

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.
  • Fix an issue in WFS.getfeature_byid where the max_nrecords argument was not being used correctly, thus resulting in large requests to fail.

Internal Changes

  • For ServiceURL class, use dataclass instead for better performance and consistency.

v0.16.0

03 Jan 18:57
Compare
Choose a tag to compare

Release Notes

New Features

  • Add a new arg to WMS.getmap_bybox called tiff_dir for storing the responses from a WMS request as a GeoTIFF file on disk instead of keeping all responses in memory. When this arg is given the function return a list of paths to these files. This is useful for large requests where the response is too large to be kept in memory. You can create a VRT file from these files using pygeoutils.gtiff2vrt function.

v0.15.2

22 Sep 14:22
Compare
Choose a tag to compare

Release Notes

New Features

  • Added RESTfulURLs for FEMA's National Flood Hazard Layer (NFHL) service. Contributed by Fernando Aristizabal. (62{.interpreted-text role="pull_ogc"})
  • Now, RetrySession can be used as a context manager. This is useful for closing the session after using it. For example:
from pygeoogc import RetrySession

with RetrySession() as session:
    r = session.get("https://httpbin.org/get").json()

Internal Changes

  • Improve the example in the docstring of traverse_json function.
  • Improve exception handling in the ArcGISRESTful class and return a more informative error message.

v0.15.1

02 Sep 13:18
Compare
Choose a tag to compare

Release Notes

New Features

  • Add the STN Flood Event Data URL to the list of RESTfuls. Contributed by Fernando Aristizabal.
  • Add the link for the eHydro's web service.

v0.15.0

07 May 22:21
Compare
Choose a tag to compare

Release Notes

From release 0.15 onward, all minor versions of HyRiver packages will be pinned. This ensures that previous minor versions of HyRiver packages cannot be installed with later minor releases. For example, if you have pygeoogc==0.14.x installed, you cannot install pygeoogc==0.15.x series. This is to ensure that the API is consistent across all minor versions.

New Features

  • For now, retain compatibility with shapely<2 while supporting shapley>=2.

Bug Fixes

  • Fix an issue in WFS where the getfeature_bygeom method fails if the requested web service does not have geometry_column attribute in its schema. This release addresses this issue by trying to find the name from other attributes in the schema. If it fails to find, it raises a ValueError.
  • Catch an edge case in match_crs function where the input is a list of coordinates of length 4.
  • Give precedence to non-default arguments for caching related arguments instead of directly getting them from env variables. This is to avoid the case where the user sets the env variables but then passes different arguments to the function. In this case, the function should use the passed arguments instead of the env variables.

Internal Changes

  • Remove pyyaml as a dependency since it is not used anymore.