Skip to content

v0.4.0

Compare
Choose a tag to compare
@philvarner philvarner released this 08 Jun 18:51
· 424 commits to main since this release
72409ae

[v0.4.0] - 2022-06-08

Added

  • Significantly improved type hints
  • lru_cache to several methods #167
  • Direct item GET via ogcapi-features, if conformant #166
  • py.typed for downstream type checking #163
  • Added tutorial for using various geometry objects (e.g., shapely, geojson) as an Item Search intersects argument #232

Changed

  • Item Search no longer defaults to returning an unlimited number of result Items from
    its "items" methods. The max_items parameter now defaults to 100 instead of None.
    Since the limit parameter also defaults to 100, in an ideal situation, only one request
    will be made to the server to retrieve all 100 items. Both of these parameters can be
    carefully adjusted upwards to align with the server's capabilities and the expected
    number of search results. #208
  • Better error message when trying to search a non-item-search-conforming catalog #164
  • Search filter-lang defaults to cql2-json instead of cql-json #169
  • Search filter-lang will be set to cql2-json if the filter is a dict, or cql2-text if it is a string #169
  • Search parameter intersects is now typed to only accept a str, dict, or object that implements __geo_interface__ #169
  • Better error message when trying to open a Collection with Client.open #222

Deprecated

  • Item Search methods get_items() and get_item_collections() have been renamed to
    items() and item_collections(). The original methods are now deprecated
    and may be removed as early as v0.5.0. #206
  • Item Search methods get_all_items() and get_all_items_as_dict() are now deprecated,
    and may be removed as early as v0.5.0.
    These have been deprecated because they have the potential to perform a large number
    of requests to the server and instantiate a large number of objects in memory.
    To a user, this is only visible as a large delay in the method call and/or the
    exhaustion of all available memory. The iterator methods items() or
    item_collections() should be used instead. #206
  • CLI parameter -q is now deprecated and may be removed as early as v0.5.0. Use --query instead. #215

Removed

  • Client parameter require_geojson_link has been removed. #169

Fixed

What's Changed

New Contributors

Full Changelog: v0.3.5...v0.4.0