Releases: hyriver/pygeoogc
Releases · hyriver/pygeoogc
v0.13.5
Release Notes
Breaking Changes
- Append "Error" to all exception classes for conforming to PEP-8 naming conventions.
Internal Changes
- Bump minimum version of
owslibto 0.27.2 since thepyprojincompatibility issue has been addressed in this issue. - Bump minimum version of
requests-cacheto 0.9.6 since theattrsversion issue has been addressed.
v0.13.3
Release Notes
New Features
- Add support for disabling persistent caching in
RetrySessionvia an argument and alsoHYRIVER_CACHE_DISABLEenvironmental variable.
v0.13.2
Release Notes
Breaking Changes
- Set the minimum supported version of Python to 3.8 since many of the dependencies such as
xarray,pandas,rioxarrayhave dropped support for Python 3.7. - Pin
owslibto version <0.26 since version 0.26 has pinnedpyprojto version <3.3 which is not compatible withrasterioon macOS.
Internal Changes
- Use micromamba for running tests and use nox for linting in CI.
v0.13.1
Release Notes
New Features
- More robust handling of errors in
ArcGISRESTfulby catchingNoneresponses. Also, use thePOSTmethod forArcGISRESTful.bysqlsince the SQL Clause could be a long string.
v0.13.0
Release Notes
Breaking Changes
-
Remove caching-related arguments from all functions since now they can be set globally via three environmental variables:
HYRIVER_CACHE_NAME: Path to the caching SQLite database.HYRIVER_CACHE_EXPIRE: Expiration time for cached requests in seconds.HYRIVER_CACHE_DISABLE: Disable reading/writing from/to the cache file.
You can do this like so:
import os
os.environ["HYRIVER_CACHE_NAME"] = "path/to/file.sqlite"
os.environ["HYRIVER_CACHE_EXPIRE"] = "3600"
os.environ["HYRIVER_CACHE_DISABLE"] = "true"Bug Fixes
- In
ArcGISRESTful.oids_byfieldconvert the inputidsto alistif a user passes a singleid.
Internal Changes
- Refactor
ServicURLto hard code the supported links instead of reading them from a file. Also, the class now is based onNamedTuplethat has a nicer__repr__.
v0.12.2
Release Notes
New Features
- Make
validate_crspublic that can be accessed from theutilsmodule. This is useful for checking validity of user input CRS values and getting its string representation. - Add
pygeoogc.utils.valid_wms_crsfunction for getting a list of valid CRS values from a WMS service. - Add 3DEP's index WFS service for querying availability of 3DEP data within a bounding box.
Internal Changes
- Add type checking with
typeguardand fixed typing issues raised bytypeguard. - Refactor
show_versionsto ensure getting correct versions of all dependencies.
v0.12.1
Release Notes
Internal Changes
- Use the three new
ar.retrieve_*functions instead of the oldar.retrievefunction to improve type hinting and to make the API more consistent.
v0.12.0
Release Notes
New Features
- Add a new argument to
ArcGISRESTfulcalledverboseto turn on/off all info level logs. - Add an option to
ArcGISRESTful.get_featurescalledget_geometryto turn on/off requesting the data with or without geometry. - Now,
ArcGISRESTfulsaves the object IDs of the features that user requested but are not available in the database to./cache/failed_request_ids.txt. - Add a new parameter to
ArcGISRESTfulcalleddisable_retrythat IfTruein case there are any failed queries, no retrying attempts is done and object IDs of the failed requests are saved to a text file which its path can be accessed viaArcGISRESTful.client.failed_path. - Set response caching expiration time to never expire, for all base classes. A new argument has been added to all three base classes called
expire_afterthat can be used to set the expiration time. - Add a new method to all three base classes called
clear_cachethat clears all cached responses for that specific client.
Breaking Changes
- All
oids_by*methods ofArcGISRESTfulclass now return a list of object IDs rather than settingself.featureids. This makes it possible to pass the outputs of theoids_by*functions directly to theget_featuresmethod.
Internal Changes
- Make
ArcGISRESTfulless cluttered by instantiatingArcGISRESTfulBasein theinitmethod ofArcGISRESTfulrather than inheriting from its base class. - Explicitly set a minimum value of 1 for the maximum number of feature IDs per request in
ArcGISRESTful, i.e.,self.max_nrecords. - Add all the missing types so
mypy --strictpasses.
v0.11.7
Release Notes
Breaking Changes
- Remove the
onlyipv4method fromRetrySessionsince it can be easily be achieved usingwith unittest.mock.patch("socket.has_ipv6", False):.
Internal Changes
- Use the
geomsmethod for iterating over geometries to address the deprecation warning ofshapely. - Use
importlib-metadatafor getting the version insead ofpkg_resourcesto decrease import time as discussed in this issue. - Remove unnecessary dependency on
simplejsonand useujsoninstead.
v0.11.6
Release Notes
Breaking Changes
- Remove the
onlyipv4method fromRetrySessionsince it can be easily be achieved usingwith unittest.mock.patch("socket.has_ipv6", False):.
Internal Changes
- Use the
geomsmethod for iterating over geometries to address the deprecation warning ofshapely. - Use
importlib-metadatafor getting the version insead ofpkg_resourcesto decrease import time as discussed in this issue.