stac-validator 3.9.1__tar.gz → 3.9.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stac_validator-3.9.1 → stac_validator-3.9.2}/PKG-INFO +1 -1
- {stac_validator-3.9.1 → stac_validator-3.9.2}/setup.py +1 -1
- {stac_validator-3.9.1 → stac_validator-3.9.2}/stac_validator/validate.py +12 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/stac_validator.egg-info/PKG-INFO +1 -1
- {stac_validator-3.9.1 → stac_validator-3.9.2}/LICENSE +0 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/README.md +0 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/pyproject.toml +0 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/setup.cfg +0 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/stac_validator/__init__.py +0 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/stac_validator/stac_validator.py +0 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/stac_validator/utilities.py +0 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/stac_validator.egg-info/SOURCES.txt +0 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/stac_validator.egg-info/dependency_links.txt +0 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/stac_validator.egg-info/entry_points.txt +0 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/stac_validator.egg-info/requires.txt +0 -0
- {stac_validator-3.9.1 → stac_validator-3.9.2}/stac_validator.egg-info/top_level.txt +0 -0
|
@@ -681,10 +681,22 @@ class StacValidate:
|
|
|
681
681
|
Args:
|
|
682
682
|
item_collection (dict): The dictionary representation of the item collection.
|
|
683
683
|
"""
|
|
684
|
+
# Store the original stac_file to restore it later
|
|
685
|
+
original_stac_file = self.stac_file
|
|
686
|
+
|
|
684
687
|
for item in item_collection["features"]:
|
|
688
|
+
# Update the path to include the item ID for better traceability
|
|
689
|
+
if isinstance(original_stac_file, str) and "id" in item:
|
|
690
|
+
# Remove any query string from the URL before appending the item ID
|
|
691
|
+
base_url = original_stac_file.split("?")[0]
|
|
692
|
+
self.stac_file = f"{base_url}/{item['id']}"
|
|
693
|
+
|
|
685
694
|
self.schema = ""
|
|
686
695
|
self.validate_dict(item)
|
|
687
696
|
|
|
697
|
+
# Restore the original stac_file
|
|
698
|
+
self.stac_file = original_stac_file
|
|
699
|
+
|
|
688
700
|
def validate_collections(self) -> None:
|
|
689
701
|
"""
|
|
690
702
|
Validate STAC Collections from a /collections endpoint.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|