Skip to content

Releases: hyriver/pygeoogc

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.

v0.14.0

05 Mar 16:49
Compare
Choose a tag to compare

Release Notes

Breaking Changes

  • Bump the minimum required version of shapely to 2.0, and use its new API.

Internal Changes

  • Sync all minor versions of HyRiver packages to 0.14.0.

v0.13.12

10 Feb 16:17
Compare
Choose a tag to compare

Release Notes

New Features

  • Make match_crs less strict in terms of the input geometry type being tuple or list by relying on shapely and contextlib.suppress. So, now users can pass any combination of list or tuple as coordinates or bounding box.

Bug Fixes

  • In WFS when some layers have missing schema info, the class failed to initialize. This release fixes this issue by ignoring layers with missing schema info and asks the user to pass a sort parameter instead of trying to automatically find a sort parameter. This fix also improves the performance of this function by making fewer web requests.

Internal Changes

  • Fully migrate setup.cfg and setup.py to pyproject.toml.
  • Convert relative imports to absolute with absolufy-imports.
  • Sync all patch versions of HyRiver packages to x.x.12.