You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the add_item method on a catalog, pystac adjusts links for the dependent object to fit the expected STAC structure even if they're explicitly set and the catalog type is ABSOLUTE_PUBLISHED.
Expected: If explicit links are set and ABSOLUTE_PUBLISHED is the catalog type, they should be kept the same throughout all processes.
Actual: Adding items to ABSOLUTE_PUBLISHED catalogs changes explicit links to fit assumed file structure.
The link to the item in the catalog, as well as the self link in the item itself have been changed to mirror the assumed structure despite explicitly setting them to be something else.
❯ pip show pystac
Name: pystac
Version: 1.6.1
Summary: Python library for working with Spatiotemporal Asset Catalog (STAC).
Home-page: https://github.com/stac-utils/pystac
Author: stac-utils
Author-email: [email protected]
License: Apache Software License 2.0
Location: {location}
Requires: python-dateutil
Required-by:
Context: I've been implementing some STAC features for a team that wants to avoid writing it to storage for various reasons. What I've had to do is make endpoints on their server's api that generate catalogs and items when hit, and so the self links of items and catalogs needs to be explicitly set to these endpoints and not json files.
The text was updated successfully, but these errors were encountered:
kylemann16
changed the title
Add_child, add_parent, and add_item change explicitly set links to fit the assumed structure
Add_item changes explicitly set links to fit the assumed structure
Aug 16, 2022
When using the
add_item
method on a catalog, pystac adjusts links for the dependent object to fit the expected STAC structure even if they're explicitly set and the catalog type isABSOLUTE_PUBLISHED
.Expected: If explicit links are set and
ABSOLUTE_PUBLISHED
is the catalog type, they should be kept the same throughout all processes.Actual: Adding items to
ABSOLUTE_PUBLISHED
catalogs changes explicit links to fit assumed file structure.Example:
The link to the item in the catalog, as well as the self link in the item itself have been changed to mirror the assumed structure despite explicitly setting them to be something else.
The catalog for the above scenario is set as:
In order to add an explicit link, I have to do
Context: I've been implementing some STAC features for a team that wants to avoid writing it to storage for various reasons. What I've had to do is make endpoints on their server's api that generate catalogs and items when hit, and so the self links of items and catalogs needs to be explicitly set to these endpoints and not json files.
The text was updated successfully, but these errors were encountered: