-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
bugThings which are brokenThings which are broken
Milestone
Description
I think that Collection.from_file parses asset objects incorrectly. Given the catalog
{
"id": "id",
"stac_version": "1.0.0",
"type": "Collection",
"description": "description",
"license": "license",
"extent": {
"temporal": [null, null],
"spatial": [[null, null]]
},
"links": {},
"assets": {
"a": {
"href": "href",
"title": "tile",
"description": "description"
}
}
}pystac.Collection.from_file gives
In [12]: pystac.Collection.from_file("cat.json").assets['a'].href
Out[12]: {'href': 'href', 'title': 'tile', 'description': 'description'}It looks like the whole object is being set for the href, rather than just the href.
Metadata
Metadata
Assignees
Labels
bugThings which are brokenThings which are broken