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

Adds support for IAU codes. #12

Merged
merged 34 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
eb2ad79
Adds support for IAU codes.
jlaura Oct 17, 2022
fea2e98
Clarify that `proj:wkt2` or `proj:projjson` should be used for comple…
m-mohr Oct 24, 2022
1366879
Fix merge issues?!
m-mohr Feb 6, 2023
6f07dc2
Clarify/fix `proj:epsg` requirement (#15)
m-mohr Feb 7, 2023
e85a10d
Updated version number to v1.1.0 for the next release (#17)
m-mohr Feb 10, 2023
b777fec
Adds support for IAU codes.
jlaura Oct 17, 2022
3989cf2
Updates for comments.
jlaura Apr 3, 2023
2e93bd8
Updates schema per comments.
jlaura Apr 11, 2023
47ffff0
Updates README to match style and updates example.
jlaura Apr 11, 2023
508ff35
Update README.md
jlaura Jun 5, 2023
a9d021d
Apply suggestions from code review
jlaura Jun 5, 2023
7952944
Updates examples to use the code/authority paradigm
jlaura Jun 5, 2023
737b569
Updates for comments.
jlaura Aug 3, 2023
ba2bd56
Updates with table.
jlaura Aug 7, 2023
8b9d07a
Updates for link comments.
jlaura Aug 9, 2023
a7ddf4e
As discussed at STAC sprint, 2023
jlaura Sep 27, 2023
99a9ad8
Changes to proj:srid, cleans all references to code/authority.
jlaura Sep 28, 2023
9419cb8
Updates to remove build warnings.
jlaura Oct 10, 2023
2cdeee5
Updates for linter.
jlaura Nov 20, 2023
c565188
Trying to file action to test.
jlaura Nov 20, 2023
f084c50
SRID to CODE...CODE to SRID...
jlaura Nov 20, 2023
af9e424
Missed code to SRID in the schema
jlaura Nov 20, 2023
aa818fd
Update CHANGELOG.md
m-mohr Nov 20, 2023
9cd8778
Apply suggestions from code review
m-mohr Nov 20, 2023
689427f
Update README.md
jlaura Nov 20, 2023
bd0b3f5
Adds table back
jlaura Nov 20, 2023
cc38619
Fixes table and extra new line
jlaura Nov 20, 2023
ecba565
Adds ESRI codes to the table of potential registries
jlaura Nov 21, 2023
72dfbcc
Fixes typo in table...
jlaura Dec 1, 2023
9baa46a
Updates CHANGELOG
jlaura Dec 4, 2023
478f9eb
Line lengths....
jlaura Dec 4, 2023
b786819
Update CHANGELOG.md
m-mohr Dec 4, 2023
7ded8eb
Updates to remove 2015 from IAU
jlaura Dec 19, 2023
bbb32ab
Deprecate epsg code, linting
m-mohr Jul 22, 2024
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
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- The new field `proj:code` was introduced as a more general way to describe projection codes for various authorities, not just EPSG.

### Deprecated

- `proj:espg` was deprecated in favor of `proj:code`.
A former `"proj:epsg": 3857` is now `"proj:code": "EPSG:3857"`.

## [v1.1.0] - 2023-02-10

### Added

- Added examples for Collections and Assets (in Items)

### Changed

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

Expand Down
142 changes: 89 additions & 53 deletions README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"created": "2020-12-12T01:48:13.725Z",
"updated": "2020-12-12T01:48:13.725Z",
"platform": "cool_sat2",
"proj:epsg": 32659,
"proj:code": "EPSG:32659",
"instruments": [
"cool_sensor_v1"
]
Expand All @@ -64,7 +64,7 @@
"data"
],
"gsd": 0.66,
"proj:epsg": 32659,
"proj:code": "EPSG:32659",
"proj:shape": [
5558,
9559
Expand All @@ -84,7 +84,7 @@
"thumbnail": {
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.jpg",
"title": "Thumbnail",
"proj:epsg": null,
"proj:code": null,
"proj:shape": [
800,
800
Expand Down
4 changes: 2 additions & 2 deletions examples/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"data"
],
"gsd": 0.66,
"proj:epsg": 32659,
"proj:code": "EPSG:32659",
"proj:shape": [
5558,
9559
Expand Down Expand Up @@ -56,7 +56,7 @@
"gsd": [
0.66
],
"proj:epsg": [
"proj:code": [
32659,
null
]
Expand Down
2 changes: 1 addition & 1 deletion examples/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"cool_sensor_v1"
],
"gsd": 0.66,
"proj:epsg": 32659,
"proj:code": "EPSG:32659",
"proj:shape": [
5558,
9559
Expand Down
93 changes: 93 additions & 0 deletions examples/item_custom_proj.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
m-mohr marked this conversation as resolved.
Show resolved Hide resolved
"stac_version": "1.0.0",
"stac_extensions": [
"https://stac-extensions.github.io/projection/v1.1.0/schema.json"
],
"type": "Feature",
"id": "20201211_223832_CS2",
"bbox": [
172.91173669923782,
1.3438851951615003,
172.95469614953714,
1.3690476620161975
],
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
172.91173669923782,
1.3438851951615003
],
[
172.95469614953714,
1.3438851951615003
],
[
172.95469614953714,
1.3690476620161975
],
[
172.91173669923782,
1.3690476620161975
],
[
172.91173669923782,
1.3438851951615003
]
]
]
},
"properties": {
"datetime": "2020-12-11T22:38:32.125Z",
"created": "2020-12-12T01:48:13.725Z",
"updated": "2020-12-12T01:48:13.725Z",
"platform": "cool_sat2",
"instruments": [
"cool_sensor_v1"
],
"gsd": 0.66,
"proj:code": "IAU_2015:49900",
"proj:shape": [
5558,
9559
],
"proj:transform": [
0.5,
0,
712710,
0,
-0.5,
151406,
0,
0,
1
]
},
"links": [
{
"href": "./collection.json",
"rel": "collection",
"type": "application/json"
}
],
"assets": {
"analytic": {
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2_analytic.tif",
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
"title": "4-Band Analytic",
"roles": [
"data"
]
},
"visual": {
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.tif",
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
"title": "3-Band Visual",
"roles": [
"visual"
]
}
},
"collection": "proj-example"
}
10 changes: 9 additions & 1 deletion json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,17 @@
"type": "object",
"properties": {
"proj:epsg":{
"deprecated": true,
"title":"EPSG code",
"type":[
"integer",
"string",
"null"
]
},
"proj:code":{
"title":"Projection code",
"type":[
"string",
"null"
]
},
Expand Down
Loading