Skip to content

Commit

Permalink
format examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhealy1 committed Nov 5, 2024
1 parent c8ed7a9 commit 2ab4283
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 13 deletions.
6 changes: 4 additions & 2 deletions examples/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"merkle:root": "f1e2d3c4b5a67890abcdef1234567890abcdef1234567890abcdef1234567890",
"merkle:hash_method": {
"function": "sha256",
"fields": ["*"],
"fields": [
"*"
],
"ordering": "ascending",
"description": "Computed by including merkle:object_hash values of child objects in ascending order and building the Merkle tree."
},
Expand All @@ -24,4 +26,4 @@
"href": "collection-456.json"
}
]
}
}
22 changes: 18 additions & 4 deletions examples/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,31 @@
"license": "Apache-2.0",
"extent": {
"spatial": {
"bbox": [[172.9, 1.3, 173, 1.4]]
"bbox": [
[
172.9,
1.3,
173,
1.4
]
]
},
"temporal": {
"interval": [["2015-06-23T00:00:00Z", null]]
"interval": [
[
"2015-06-23T00:00:00Z",
null
]
]
}
},
"merkle:object_hash": "7890abcdef1234567890abcdef1234567890abcdef1234567890abcdef123456",
"merkle:root": "abc123def4567890abcdef1234567890abcdef1234567890abcdef1234567890",
"merkle:hash_method": {
"function": "sha256",
"fields": ["*"],
"fields": [
"*"
],
"ordering": "ascending",
"description": "Computed by including merkle:object_hash values in ascending order and building the Merkle tree."
},
Expand All @@ -46,4 +60,4 @@
"rel": "item"
}
]
}
}
34 changes: 27 additions & 7 deletions examples/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,36 @@
],
"type": "Feature",
"id": "item-123",
"bbox": [172.9, 1.3, 173, 1.4],
"bbox": [
172.9,
1.3,
173,
1.4
],
"geometry": {
"type": "Polygon",
"coordinates": [
[
[172.9, 1.3],
[173, 1.3],
[173, 1.4],
[172.9, 1.4],
[172.9, 1.3]
[
172.9,
1.3
],
[
173,
1.3
],
[
173,
1.4
],
[
172.9,
1.4
],
[
172.9,
1.3
]
]
]
},
Expand All @@ -34,4 +54,4 @@
"template:new_field": "test"
}
}
}
}

0 comments on commit 2ab4283

Please sign in to comment.