Skip to content

Commit 2ab4283

Browse files
committed
format examples
1 parent c8ed7a9 commit 2ab4283

File tree

3 files changed

+49
-13
lines changed

3 files changed

+49
-13
lines changed

Diff for: examples/catalog.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"merkle:root": "f1e2d3c4b5a67890abcdef1234567890abcdef1234567890abcdef1234567890",
1111
"merkle:hash_method": {
1212
"function": "sha256",
13-
"fields": ["*"],
13+
"fields": [
14+
"*"
15+
],
1416
"ordering": "ascending",
1517
"description": "Computed by including merkle:object_hash values of child objects in ascending order and building the Merkle tree."
1618
},
@@ -24,4 +26,4 @@
2426
"href": "collection-456.json"
2527
}
2628
]
27-
}
29+
}

Diff for: examples/collection.json

+18-4
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,31 @@
1010
"license": "Apache-2.0",
1111
"extent": {
1212
"spatial": {
13-
"bbox": [[172.9, 1.3, 173, 1.4]]
13+
"bbox": [
14+
[
15+
172.9,
16+
1.3,
17+
173,
18+
1.4
19+
]
20+
]
1421
},
1522
"temporal": {
16-
"interval": [["2015-06-23T00:00:00Z", null]]
23+
"interval": [
24+
[
25+
"2015-06-23T00:00:00Z",
26+
null
27+
]
28+
]
1729
}
1830
},
1931
"merkle:object_hash": "7890abcdef1234567890abcdef1234567890abcdef1234567890abcdef123456",
2032
"merkle:root": "abc123def4567890abcdef1234567890abcdef1234567890abcdef1234567890",
2133
"merkle:hash_method": {
2234
"function": "sha256",
23-
"fields": ["*"],
35+
"fields": [
36+
"*"
37+
],
2438
"ordering": "ascending",
2539
"description": "Computed by including merkle:object_hash values in ascending order and building the Merkle tree."
2640
},
@@ -46,4 +60,4 @@
4660
"rel": "item"
4761
}
4862
]
49-
}
63+
}

Diff for: examples/item.json

+27-7
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,36 @@
55
],
66
"type": "Feature",
77
"id": "item-123",
8-
"bbox": [172.9, 1.3, 173, 1.4],
8+
"bbox": [
9+
172.9,
10+
1.3,
11+
173,
12+
1.4
13+
],
914
"geometry": {
1015
"type": "Polygon",
1116
"coordinates": [
1217
[
13-
[172.9, 1.3],
14-
[173, 1.3],
15-
[173, 1.4],
16-
[172.9, 1.4],
17-
[172.9, 1.3]
18+
[
19+
172.9,
20+
1.3
21+
],
22+
[
23+
173,
24+
1.3
25+
],
26+
[
27+
173,
28+
1.4
29+
],
30+
[
31+
172.9,
32+
1.4
33+
],
34+
[
35+
172.9,
36+
1.3
37+
]
1838
]
1939
]
2040
},
@@ -34,4 +54,4 @@
3454
"template:new_field": "test"
3555
}
3656
}
37-
}
57+
}

0 commit comments

Comments
 (0)