- Exclude
tests
from package distribution. This should make the package lighter (#604)
- Enable strict
mode
for
mypy
(#591) Catalog.set_root
also setsCatalog.stac_io
for the calling instance to be the same asroot.stac_io
, if that value is notNone
(#590)- Links will get their
title
from their target if notitle
is provided (#607) - Relax typing on
LabelClasses
fromList
toSequence
(#627)
generate_subcatalogs
can include multiple template values in a single subfolder layer (#595)- Avoid implicit re-exports (#591)
- Include type information during packaging for use with e.g.
mypy
(#579) - Optional
dest_href
argument toCatalog.save
to allow savingCatalog
instances to locations other than theirself
href (#565)
- Pin the rustc version in Continuous Integration to work around rust-lang/cargo#9727 (#581)
- HREFs in
Link
objects withrel == "self"
are converted to absolute HREFs (#574)
ProjectionExtension.crs_string
to provide a single string to describe the coordinate reference system (CRS). Useful because projections can be defined by EPSG code, WKT, or projjson. (#548)- SAR Extension summaries(#556)
- Migration for
sar:type
->sar:product_type
andsar:polarization
->sar:polarizations
for pre-0.9 catalogs (#556) - Migration from
eo:epsg
->proj:epsg
for pre-0.9 catalogs (#557) - Collection summaries for Point Cloud Extension (#558)
PhenomenologyType
enum for recommended values ofpc:type
&SchemaType
enum for valid values oftype
in Point Cloud Schema Objects (#548)to_dict
and equality definition forextensions.item_asset.AssetDefinition
(#564)Asset.common_metadata
property (#563)
- The
from_dict
method on STACObjects will set the object's root link when aroot
parameter is present. An ItemCollectionfrom_dict
with a root parameter will set the root on each of it's Items. (#549) - Calling
ExtensionManagementMixin.validate_has_extension
withadd_if_missing = True
on an ownerlessAsset
will raise aSTACError
(#554) PointcloudSchema
->Schema
,PointcloudStatistic
->Statistic
for consistency with naming convention in other extensions (#548)RequiredPropertyMissing
always raised when trying to get a required property that isNone
(STACError
orKeyError
was previously being raised in some cases) (#561)
- Added
Collections
as a type that can be extended for extensions whose fields can appear in collection summaries (#547) - Allow resolved self links when getting an object's self href (#555)
- Fixed type annotation on SummariesLabelExtension.label_properties setter (#562)
- Allow comparable types with alternate parameter naming of lt method to pass structural type linting for RangeSummary (#562)
- (Experimental) support for Python 3.10 (#473)
LabelTask
enum inpystac.extensions.label
with recommended values for"label:tasks"
field (#484)LabelMethod
enum inpystac.extensions.label
with recommended values for"label:methods"
field (#484)- Label Extension summaries (#484)
- Timestamps Extension summaries (#513)
- Define equality and
__repr__
ofRangeSummary
instances based onto_dict
representation (#513) - Sat Extension summaries (#509)
Catalog.get_collections
for getting all childCollections
for a catalog, andCatalog.get_all_collections
for recursively getting all childCollections
for a catalog and its children (#511)
- Renamed
Asset.properties
->Asset.extra_fields
andLink.properties
->Link.extra_fields
for consistency with other STAC objects (#510)
- Bug in
pystac.serialization.identify_stac_object_type
where invalid objects withstac_version == 1.0.0
were incorrectly identified as Catalogs (#487) Link
constructor classes (e.g.Link.from_dict
,Link.canonical
, etc.) now return the calling class instead of always returning theLink
class (#512)- Sat extension now includes all fields defined in v1.0.0 (#509)
STAC_IO
class in favor ofStacIO
. This was deprecated in v1.0.0-beta.1 and has been removed in this release. (#490)- Support for Python 3.6 (#500)
- Add a
preserve_dict
parameter toItemCollection.from_dict
and set it to False when usingItemCollection.from_file
. (#468) StacIO.json_dumps
andStacIO.json_loads
methods for JSON serialization/deserialization. These were "private" methods, but are now "public" and documented (#471)
pystac.stac_io.DuplicateObjectKeyError
moved topystac.DuplicateObjectKeyError
(#471)
- License file included in distribution (#409)
- Links to Issues, Discussions, and documentation sites (#409)
- Python minimum version set to
>=3.6
(#409) - Code of Conduct (#399)
ItemCollection
class for working with GeoJSON FeatureCollections containing only STAC Items (#430)- Support for Python 3.9 (#420)
- Migration for pre-1.0.0-rc.1 Stats Objects (renamed to Range Objects in 1.0.0-rc.3) (#447)
- Attempting to extend a
STACObject
that does not contain the extension's schema URI instac_extensions
raises newExtensionNotImplementedError
(#450) STACObject.from_dict
now takes apreserve_dict
parameter, which if False will avoid a call to deepcopy on the passed in dict and can result in performance gains (defaults to True. Reading from a file will use preserve_dict=False resulting in better performance. (#454)
- Package author to
stac-utils
, email to[email protected]
, url to this repo (#409) StacIO.read_json
passes arbitrary positional and keyword arguments toStacIO.read_text
(#433)FileExtension
updated to work with File Info Extension v2.0.0 (#442)FileExtension
only operates onpystac.Asset
instances (#442)*Extension.ext
methods now have an optionaladd_if_missing
argument, which will add the extension schema URI to the object'sstac_extensions
list if it is not present (#450)from_file
andfrom_dict
methods onSTACObject
sub-classes always return instance of calling class (#451)
EOExtension.get_bands
returnsNone
for asset without EO bands (#406)identify_stac_object_type
returnsNone
andidentify_stac_object
raisesSTACTypeError
for non-STAC objects (#402)ExtensionManagementMixin.add_to
is now idempotent (only adds schema URI tostac_extensions
once perItem
regardless of the number of calls) (#419)- Version check for when extensions changed from short links to schema URIs (#455)
- Schema URI base for STAC 1.0.0-beta.1 (#455)
- Summaries for View Geometry, Projection, and Scientific extensions (#372)
- Raster extension support (#364)
- solar_illumination field in eo extension (#356)
- Added
Link.canonical
static method for creating links with "canonical" rel type (#351) - Added
RelType
enum containing commonrel
values (#351) - Added support for summaries (#264)
- Links to STAC Spec point to latest supported version (#368)
- Links to STAC Extension pages point to repos in
stac-extensions
GitHub org (#368) - Collection assets (#373)
- Two v0.6.0 examples from the test suite (#373)
- Split
DefaultStacIO
's reading and writing into two methods to allow subclasses to use the default link resolution behavior (#354) - Increased test coverage for the pointcloud extension (#352)
- Reading json without orjson (#348)
- Removed type information from docstrings, since it is redundant with function type annotations (#342)
- Added type annotations across the library (#309)
- Added assets to collections (#309)
item_assets
extension (#309)datacube
extension (#309)- Added specific errors:
ExtensionAlreadyExistsError
,ExtensionTypeError
, andRequiredPropertyMissing
; moved custom exceptions topystac.errors
(#309)
- Validation checks in a few tests (#346)
- API change: The extension API changed significantly. See (#309) for more details.
- API change: Refactored the global STAC_IO object to an instance-specific
StacIO
implementation. (#309) - Asset.get_absolute_href returns None if no absolute href can be inferred (previously the relative href that was passed in was returned) (#309)
- Removed
properties
from Collections (#309) - Removed
LinkMixin
, and implemented those methods onSTACObject
directly. STACObject was the only class using LinkMixin and this should not effect users (#309 - Removed
single-file-stac
extension; this extension is being removed in favor of ItemCollection usage (#309
- Deprecated
STAC_IO
in favor of newStacIO
class.STAC_IO
will be removed in v1.0.0. (#309)
- HIERARCHICAL_LINKS array constant of all the types of hierarchical links (self is not included) (#290)
- Fixed error when accessing the statistics attribute of the pointcloud extension when no statistics were defined (#282)
- Fixed exception being thrown when calling set_self_href on items with assets that have relative hrefs (#291)
- Link behavior - link URLs can be either relative or absolute. Hierarchical (e.g., parent, child) links are made relative or absolute based on the value of the root catalog's
catalog_type
field (#290) - Internal self hrefs are set automatically when adding Items or Children to an existing catalog. This removes the need to call
normalize_hrefs
or manual setting of the hrefs for newly added STAC objects (#294) - Catalog.generate_subcatalogs is an order of magnitude faster (#295)
- Removed LinkType class and the
link_type
field from links (#290)
- Added support for STAC file extension (#270)
- Fix handling of optional properties when using apply on view extension (#259)
- Fixed issue with setting None into projection extension fields that are not required breaking validation (#269)
- Subclass relevant classes from
enum.Enum
. This allows iterating over the class' contents. The__str__
method is overwritten so this should not break backwards compatibility. (#261) - Extract method to correctly handle setting properties in Item/Asset for ItemExtensions (#272)
- Fix unexpected behaviour of
generate_subcatalogs
(#241) - Get eo bands defined in assets only (#243)
- Collection TemporalExtent can be open ended (#247)
- Make asset HREFs relative or absolute based on CatalogType during save (#251)
- Be more strict with CatalogType in
Catalog.save
(#244)
- Added support for the pointcloud extension (#176)
- Added support for the version extension (#193)
- Added support for the SAR extension (#203)
- Added the capability to more flexibly organize STACs using
normalize_hrefs
(#219) - Added a 'generate_subcatalogs' to Catalog to allow for subcatalogs to be created by using item properties via a template string (#219)
- Added 'from_items' method to Extent (#223)
- Added a
catalog_type
property to track the CatalogType of read in or previously saved catalogs (#224) - Added a tutorial for creating Landsat 8 STACs (#181)
- Added codespell to CI (#206)
- Added more testing to Links (#211)
- Fixed issue that can cause infinite recursion during full resolve (#204)
- Fixed issue that required label_classes in label items (#201)
- Fixed issue that caused geometries and bboxes produced by Shapely to fail PySTAC's validaton (#201)
- Allow for path prefixes like /vsitar/ (#208)
- Fix Item set_self_href to ensure item asset locations do not break (#226)
- Fixed an incorrect exception being thrown from Link.get_href() if there is no target_href (#201)
- Fixed issue where 0.9.0 items were executing the commons extension logic when they shouldn't (#221)
- Fixed issue where cloned assets did not have their owning Items set (#228)
- Fixed issue that caused make_asset_hrefs_relative to produce incorrect HREFs when asset HREFs were already relative (#229)
- Improve error handling when accidentally importing a Collection with Catalog (#186)
- Fixed spacenet tutorial bbox issue (#201)
- Fix formatting of error message in stac_validator (#190)
- Fixed typos (#192, #195)
- Refactor caching to utilize HREFs and parent IDs. STAC objects now no longer need unique IDs to work with PySTAC (#214, #160)
- Allow a user to pass a single list as bbox and interval for
SpatialExtent
andTemporalExtent
(#201, fixes #198)
Thank you to all the new contributors that contributed during STAC Sprint 6!
- Added support for the timestamps extension(#161)
update_extent_from_items
method to Collection for updating Extent objects within a collection based on the contained items. (#168)validate_all
method to Catalogs (and by inheritance collections) for validating all catalogs, collections and items contained in that catalog (#162)validate_all
method to pystac.validdation for validating all catalogs, collections and items contained in STAC JSON dicts across STAC versions. (#162)- Additional test coverage. (#165, #171)
- Added codecov to CI (#163)
- Fix bug that caused get_children to miss some links. (#172)
- Fixed bug in ExtensionIndex that was causing errors when trying to read help() for that object (#159)
- Remove spaces in CBERS test library (#157)
- Changed some unit test assertions for better error messages (#158)
- Moved PySTAC to the stac-utils GitHub organization.
- A tutorial for creating extensions (#150)
- Added support for the Projection extension(#125)
- Add support for Item Asset properties (#127)
- Added support for dynamically changing the STAC version via
pystac.set_stac_version
andpystac.get_stac_version
(#130) - Added support for prerelease versions in version comparisons for the
pystac.serialization.identify
package (#138) - Added validation for PySTAC STACObjects as well as arbitrary STAC JSON (#139)
- Added the ability to read HTTP and HTTPS uris by default (#139)
- Clarification on null geometries, making bbox not required if a null geometry is used. (#123)
- Multiple extents (bounding boxes / intervals) are allowed per Collection (#123)
- Moved eo:gsd from eo extension to core gsd field in Item common metadata (#123) asset extension renamed to item-assets and renamed assets field in Collections to item_assets (#123)
get_asset_bands
andset_asset_bands
were renamedget_bands
andset_bands
and follow the new item asset property access pattern.- Modified the
single-file-stac
extension to extendCatalog
(#128)
- ItemCollection was removed. (#123)
- The commons extension was removed. Collection properties will still be merged for pre-1.0.0-beta.1 items where appropriate (#129)
- Removed
pystac.STAC_VERSION
. See addition ofget_stac_version
above. (#130)
The two major changes for this release are:
- Upgrade to STAC 0.9.0
- Refactor the extensions API to accommodate items that implement multiple extensions (e.g.
eo
andview
)
See the stac-spec 0.9.0 changelog and issue #65 for more information.
These are the major API changes that will have to be accounted for when upgrading PySTAC:
This change affects the two extensions that were implemented for Item - EOItem
and LabelItem
have become EOItemExt
and LabelItemExt
, and no longer inherit from Item.
This change was motivated by the 0.9 change that split some properties out from eo
into
the view
extension. If we kept an inheritance-based extension architecture, we would not
be able to account well for these new items that implemented both the eo
and view
extensions.
See the Extensions section in the documentation for more information on the new way to use extensions.
pystac.label
->pystac.extensions.label
pystac.eo
->pystac.extensions.eo
pystac.single_file_stac
->pystac.extensions.single_file_stac
pystac.read_file
as a convenience function for reading in a STACObject from a file at a URI which delegates toSTACObject.from_file
.pystac.read_file
as a convenience function for reading in a STACObject from a file at a URI.- Added support for the view extension.
- Added support for the commons extension.
-
Migrated CI workflows from Travis CI to GitHub Actions #108
-
Dropped support for Python 3.5 #108
-
Extension classes for label, eo and single-file-stac were moved to the
pystac.extensions
package. -
the eo and label extensions changed from being a subclass of Item to wrapping items. Note: This is a major change in the API for dealing with extensions. See the note below for more information.
-
Renamed the class that enumerates extension names from
Extension
toExtensions
-
Asset properties always return a dict instead of being None for Assets that have non-core properties.
-
The
Band
constructor in the EO extension changed to taking a dict. To create a band from property values, useBand.create
v0.3.4 - 2020-06-20
- Further narrow version for SAR extension #85
- Fixed issue with reading ItemCollections directly. #86
- Fix bug in
make_absolute_href
#94 - Fixed issues with
fully_resolve
#98 - Fixed a bug when root link was not set #100
v0.3.3 - 2020-02-05
- Allow for backwards compatibility for reading STAC #77
- Fix issue with multiple collection reads per item #79
- Fix issue with iteration of children in
catalog.walk
#78 - Allow v0.7.0 sar items to fit in version range #80
v0.3.2 - 2020-01-28
- Add functionality for identifying STAC JSON information #50
- Documentation improvements #44
- Updated MediaTypes to reflect correct GeoTIFF and COG names #66
- Fix utils to work with windows paths. #68
- Modified output datetime strings to ISO8601. #69
- Respect tzinfo in the provided datetime #70
- Set asset owner to item when reading in items.#71
- Fixed catalog and collection clone logic to avoid dupliction root link #72
v0.3.1 - 2019-11-04
- Add methods for removing single items and children from catalogs.
- Add methods for removing objects from the ResolvedObjectCache.
- Fixed issue where cleared items and children were still in the root object cache.
- Moved STAC version to 0.8.1
- LabelItem reduced validation as there is some confusion on how segmentation classes
v0.3.0 - 2019-10-31
Initial release.