Skip to content

Commit 6f07dc2

Browse files
m-mohrgadomski
authored andcommitted
Clarify/fix proj:epsg requirement (#15)
* Add more examples, clarify/fix `proj:epsg` requirement #7, align repo with template * Don't require proj:epsg as discussed in the STAC meeting * Clarification * Recommendation around thumbnails * Update README.md Co-authored-by: Pete Gadomski <[email protected]> --------- Co-authored-by: Pete Gadomski <[email protected]>
1 parent 1366879 commit 6f07dc2

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
### Changed
1616

17+
- `proj:epsg` is not required in Item properties anymore. `proj:epsg` is recommended now, but not required in any scope.
1718
- Updated the PROJJSON schema to v0.5
1819

1920
### Deprecated

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ A Coordinate Reference System (CRS) is the data reference system (sometimes call
7272
[EPSG code](https://en.wikipedia.org/wiki/EPSG_Geodetic_Parameter_Dataset).
7373
A great tool to help find EPSG codes is [epsg.io](http://epsg.io/).
7474

75-
This field must be set to `null` in the following cases:
75+
This field SHOULD be set to `null` in the following cases:
7676
- The asset data does not have a CRS, such as in the case of non-rectified imagery with Ground Control Points.
7777
- A CRS exists, but there is no valid EPSG code for it. In this case, the CRS should be provided in `proj:wkt2` and/or `proj:projjson`.
7878
Clients can prefer to take either, although there may be discrepancies in how each might be interpreted.
@@ -82,7 +82,7 @@ This field must be set to `null` in the following cases:
8282
A Coordinate Reference System (CRS) is the data reference system (sometimes called a 'projection')
8383
used by the asset data. This value is a [WKT2](http://docs.opengeospatial.org/is/12-063r5/12-063r5.html) string.
8484

85-
This field should be set to `null` in the following cases:
85+
This field SHOULD be set to `null` in the following cases:
8686
- The asset data does not have a CRS, such as in the case of non-rectified imagery with Ground Control Points.
8787
- A CRS exists, but there is no valid WKT2 string for it.
8888

@@ -92,7 +92,7 @@ A Coordinate Reference System (CRS) is the data reference system (sometimes call
9292
used by the asset data. This value is a [PROJJSON](https://proj.org/specifications/projjson.html) object,
9393
see the [JSON Schema](https://proj.org/schemas/v0.5/projjson.schema.json) for details.
9494

95-
This field should be set to `null` in the following cases:
95+
This field SHOULD be set to `null` in the following cases:
9696
- The asset data does not have a CRS, such as in the case of non-rectified imagery with Ground Control Points.
9797
- A CRS exists, but there is no valid WKT2 string for it.
9898

examples/assets.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"created": "2020-12-12T01:48:13.725Z",
4444
"updated": "2020-12-12T01:48:13.725Z",
4545
"platform": "cool_sat2",
46-
"proj:epsg": null,
46+
"proj:epsg": 32659,
4747
"instruments": [
4848
"cool_sensor_v1"
4949
]
@@ -84,6 +84,11 @@
8484
"thumbnail": {
8585
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.jpg",
8686
"title": "Thumbnail",
87+
"proj:epsg": null,
88+
"proj:shape": [
89+
800,
90+
800
91+
],
8792
"type": "image/png",
8893
"roles": [
8994
"thumbnail"

json-schema/schema.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,7 @@
2323
"const": "Feature"
2424
},
2525
"properties": {
26-
"allOf": [
27-
{
28-
"$comment": "Require fields here for item properties.",
29-
"required": [
30-
"proj:code"
31-
]
32-
},
33-
{
34-
"$ref": "#/definitions/fields"
35-
}
36-
]
26+
"$ref": "#/definitions/fields"
3727
},
3828
"assets": {
3929
"type": "object",

0 commit comments

Comments
 (0)