Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all links relative to the root catalog #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions disasters/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
},

"links": [
{
"rel": "self",
"href": "https://storage.googleapis.com/pdd-stac/disasters/catalog.json"
},
{ "rel": "root", "href": "catalog.json" },
{
"rel": "child",
"href": "hurricane-harvey/catalog.json",
Expand Down
7 changes: 2 additions & 5 deletions disasters/hurricane-harvey/0831/20170831_162740_ssc1d1.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,14 @@
},

"links": [
{
"rel": "self",
"href": "https://storage.googleapis.com/pdd-stac/disasters/hurricane-harvey/0831/20170831_162740_ssc1d1.json"
},
{
"rel": "collection",
"href": "../../catalog.json"
},
{
"rel": "root",
"href": "../../catalog.json"
"href": "../../catalog.json",
"href:from": "hurricane-harvey/0831/20120170831_162740_ssc1d1.json"
},
{
"rel": "parent",
Expand Down
7 changes: 2 additions & 5 deletions disasters/hurricane-harvey/0831/20170831_172754_101c.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,14 @@
},

"links": [
{
"rel": "self",
"href": "https://storage.googleapis.com/pdd-stac/disasters/hurricane-harvey/0831/20170831_172754_101c.json"
},
{
"rel": "collection",
"href": "../../catalog.json"
},
{
"rel": "root",
"href": "../../catalog.json"
"href": "../../catalog.json",
"href:from": "hurricane-harvey/0831/20170831_172754_101c.json"
},
{
"rel": "parent",
Expand Down
7 changes: 2 additions & 5 deletions disasters/hurricane-harvey/0831/20170831_195425_SS02.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,14 @@
},

"links": [
{
"rel": "self",
"href": "https://storage.googleapis.com/pdd-stac/disasters/hurricane-harvey/0831/20170831_195425_SS02.json"
},
{
"rel": "collection",
"href": "../../catalog.json"
},
{
"rel": "root",
"href": "../../catalog.json"
"href": "../../catalog.json",
"href:from": "hurricane-harvey/0831/20170831_195425_SS02.json"
},
{
"rel": "parent",
Expand Down
7 changes: 2 additions & 5 deletions disasters/hurricane-harvey/0831/20170831_195552_SS02.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,14 @@
},

"links": [
{
"rel": "self",
"href": "https://storage.googleapis.com/pdd-stac/disasters/hurricane-harvey/0831/20170831_195552_SS02.json"
},
{
"rel": "collection",
"href": "../../catalog.json"
},
{
"rel": "root",
"href": "../../catalog.json"
"href": "../../catalog.json",
"href:from": "hurricane-harvey/0831/20170831_195552_SS02.json"
},
{
"rel": "parent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,15 @@
},

"links": [
{
"rel": "self",
"href": "https://storage.googleapis.com/pdd-stac/disasters/hurricane-harvey/0831/Houston-East-20170831-103f-100d-0f4f-RGB.json"
},
{
"rel": "collection",
"href": "../../catalog.json"
"href": "../../collections/planet-collection.json",
"href:from": "../hurricane-harvey/0831/Houston-East-20170831-103f-100d-0f4f-RGB.json"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mojodna this should be hurricane-harvey/0831/..., right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is right. From collections/, the reverse link needs to go up a level to descend a different sibling.

},
{
"rel": "parent",
"href": "../catalog.json"
"href": "../../catalog.json",
"href:from": "hurricane-harvey/0831/Houston-East-20170831-103f-100d-0f4f-RGB.json"
}
],

Expand Down
6 changes: 3 additions & 3 deletions disasters/hurricane-harvey/0831/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

"links": [
{
"rel": "self",
"href": "https://storage.googleapis.com/pdd-stac/disasters/hurricane-harvey/0831/catalog.json"
"rel": "root",
"href": "../../catalog.json",
"href:from": "hurricane-harvey/0831/catalog.json"
},
{ "rel": "root", "href": "../../catalog.json" },
{
"rel": "parent",
"href": "../catalog.json"
Expand Down
6 changes: 3 additions & 3 deletions disasters/hurricane-harvey/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

"links": [
{
"rel": "self",
"href": "https://storage.googleapis.com/pdd-stac/disasters/hurricane-harvey/catalog.json"
"rel": "root",
"href": "../catalog.json",
"href:from": "hurricane-harvey/catalog.json"
},
{ "rel": "root", "href": "../catalog.json" },
{
"rel": "parent",
"href": "../catalog.json"
Expand Down
6 changes: 3 additions & 3 deletions disasters/mount-mayon-volcano/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

"links": [
{
"rel": "self",
"href": "http://cholmes.github.io/stac-html-x/disasters/mount-mayon/catalog.json"
"rel": "root",
"href": "../catalog.json",
"href:from": "mount-mayon/catalog.json"
},
{ "rel": "root", "href": "../catalog.json" },
{
"rel": "parent",
"href": "../catalog.json"
Expand Down
6 changes: 3 additions & 3 deletions disasters/santa-rosa-fires/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

"links": [
{
"rel": "self",
"href": "http://cholmes.github.io/stac-html-x/disasters/santa-rosa-fires/catalog.json"
"rel": "root",
"href": "../catalog.json",
"href:from": "santa-rosa-fires/catalog.json"
},
{ "rel": "root", "href": "../catalog.json" },
{ "rel": "parent", "href": "../catalog.json" }
]
}