v1.7.0
Summary
Many bug fixes and feature additions. Some changes/additions of note:
ItemCollection
now clones its items by default (#1016).Item
now implements__geo_interface__
(#885). For more about__geo_interface__
, see https://gist.github.com/sgillies/2217756.- We now have a benchmark suite (#748).
- We now use pytest (#939).
Issues and pull requests are grouped into the Github milestone.
Changelog
Added
- Additional util methods
now_in_utc
andnow_to_rfc3339_str
(#760) media_type
androle
filtering to Item and Collectionget_assets()
method (#936)Asset.has_role
(#936)- Enum MediaType entry for flatgeobuf (discussion) (#938)
- Custom
header
support toDefaultStacIO
(#889) - Python 3.11 checks in CI (#908)
- Ability to only update resolved links when using
Catalog.normalize_hrefs
andCatalog.normalize_and_save
, via a newskip_unresolved
argument (#900) - Optional argument
timespec
toutils.datetime_to_str
(#929) isort
(#961)AsIsLayoutStrategy
(#919)__geo_interface__
for items (#885)- Optional
strategy
parameter tocatalog.add_items()
(#967) start_datetime
andend_datetime
arguments to theItem
constructor (#918)RetryStacIO
(#986)STACObject.remove_hierarchical_links
andLink.is_hierarchical
(#999)extra_fields
toAssetDefinition
in the item assets extension (#1003)Catalog.fully_resolve
(#1001)- A
DeprecatedWarning
when deserializing an Item or Collection to a STAC object via thefrom_dict()
method (1006) - Support for relative stac extension paths via
make_absolute_href
(#884)
Changed
- Projection extension updated to use v1.1.0 (#989).
- Update Grid Extension support to v1.1.0 and fix issue with grid:code prefix validation (#925)
- Switch to pytest (#939)
- Use
from __future__ import annotations
for type signatures (#962) - Use
TypeVar
for alternate constructors (#983) - Behavior when required fields are missing in
Item.from_dict
(#994) - By default,
ItemCollection
now clones items in iterator (clone_items=True
) (#1016)
Deprecated
TemplateError
inlayout.py
deprecated in favor of duplicate inerrors.py
(#1018)
Fixed
- Creating dictionaries from Catalogs and Collections without root hrefs now creates valid STAC (#896)
- Dependency resolution when installing
requirements-dev.txt
(#897) - Serializing optional Collection attributes (#916)
- A couple non-running tests (#912)
- Filtering on
media_type
inget_links()
andget_single_link()
(#966) - Missing hrefs and duplicate Item fields in html generated by
_repr_html_()
(#975) - Allow subclasses in a few more
clone
methods (#983) - Pass
href
fromItem.from_dict
to constructor (#984) - Serializing the table extension (#992)
New Contributors
- @remicres made their first contribution in #888
- @john-dupuy made their first contribution in #889
- @martinfleis made their first contribution in #879
- @dlebauer made their first contribution in #915
- @giswqs made their first contribution in #926
- @luca-digrazia made their first contribution in #878
- @imanshafiei540 made their first contribution in #929
- @jsignell made their first contribution in #950