Skip to content

Commit f17b570

Browse files
committed
removal of proj:epsg and v2.0.0
1 parent 51d88bc commit f17b570

File tree

8 files changed

+27
-46
lines changed

8 files changed

+27
-46
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [v2.0.0] - 2024-07-22
10+
11+
### Removed
12+
13+
- The formerly deprecated field `proj:espg` was removed in favor of `proj:code`.
14+
A former `"proj:epsg": 3857` is now `"proj:code": "EPSG:3857"`.
15+
916
## [v1.2.0] - 2024-07-22
1017

1118
### Added
@@ -42,7 +49,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4249

4350
Initial independent release, see [previous history](https://github.com/radiantearth/stac-spec/commits/v1.0.0-rc.2/extensions/projection)
4451

45-
[Unreleased]: <https://github.com/stac-extensions/projection/compare/v1.2.0...HEAD>
52+
[Unreleased]: <https://github.com/stac-extensions/projection/compare/v2.0.0...HEAD>
53+
[v2.0.0]: <https://github.com/stac-extensions/projection/compare/v1.2.0...v2.0.0>
4654
[v1.2.0]: <https://github.com/stac-extensions/projection/compare/v1.1.0...v1.2.0>
4755
[v1.1.0]: <https://github.com/stac-extensions/projection/compare/v1.0.0...v1.1.0>
4856
[v1.0.0]: <https://github.com/stac-extensions/projection/tree/v1.0.0>

README.md

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Projection Extension Specification
22

33
- **Title:** Projection
4-
- **Identifier:** <https://stac-extensions.github.io/projection/v1.2.0/schema.json>
4+
- **Identifier:** <https://stac-extensions.github.io/projection/v2.0.0/schema.json>
55
- **Field Name Prefix:** proj
66
- **Scope:** Item, Collection
77
- **Extension [Maturity Classification](https://github.com/radiantearth/stac-spec/tree/master/README.md#extension-maturity):** Stable
@@ -37,8 +37,7 @@ The fields in the table below can be used in these parts of STAC documents:
3737

3838
| Field Name | Type | Description |
3939
| -------------- | ------------- | ----------- |
40-
| proj:code | string\|null | Authority and specific code of the data source (e.g., ["EPSG:####"](https://epsg.org/), ["IAU:#####"](http://www.opengis.net/def/crs/IAU/2015)) |
41-
| proj:epsg | integer\|null | **DEPRECATED.** [EPSG code](http://www.epsg-registry.org/) of the datasource |
40+
| proj:code | string\|null | Authority and specific code of the data source (e.g., `EPSG:3857`) |
4241
| proj:wkt2 | string\|null | [WKT2](http://docs.opengeospatial.org/is/12-063r5/12-063r5.html) string representing the Coordinate Reference System (CRS) that the `proj:geometry` and `proj:bbox` fields represent |
4342
| proj:projjson | [PROJJSON Object](https://proj.org/specifications/projjson.html)\|null | PROJJSON object representing the Coordinate Reference System (CRS) that the `proj:geometry` and `proj:bbox` fields represent |
4443
| proj:geometry | [GeoJSON Geometry Object](https://tools.ietf.org/html/rfc7946#section-3.1) | Defines the footprint of this Item. |
@@ -57,28 +56,11 @@ would imply that the projection information also applies to the thumbnail if not
5756
You may want to add the `proj:code` to the Item Properties though as this would provide an easy way to
5857
filter for specific projection codes in an API. In this case you could override the `proj:code` for the thumbnail on the asset level.
5958

60-
### Additional Field Information
61-
62-
#### proj:epsg
63-
64-
This field has been deprecated in v1.2.0 in favor of `proj:code`.
65-
`proj:epsg` will be removed in v2.0.0 of this extension.
59+
> \[!WARNING]
60+
> The field `proj:epsg` has been deprecated in v1.2.0 in favor of `proj:code` and has been removed in v2.0.0.
61+
> For example, the former field `"proj:epsg": 32659` must be migrated to `"proj:code": "EPSG:32659"`.
6662
67-
For example, the following:
68-
69-
```json
70-
{
71-
"proj:epsg": 32659,
72-
}
73-
```
74-
75-
would be represented as:
76-
77-
```json
78-
{
79-
"proj:code": "EPSG:32659",
80-
}
81-
```
63+
### Additional Field Information
8264

8365
#### proj:code
8466

@@ -90,9 +72,9 @@ clients are likely to support are listed in the following table.
9072
| Authority Name | URL |
9173
| --------------------------------------- | ---------------------------------------------------------- |
9274
| European Petroleum Survey Groups (EPSG) | <http://www.opengis.net/def/crs/EPSG> or <http://epsg.org> |
93-
| International Astronomical Union (IAU) | <http://www.opengis.net/def/crs/IAU> |
94-
| Open Geospatial Consortium (OGC) | <http://www.opengis.net/def/crs/OGC> |
95-
| ESRI | <https://spatialreference.org/ref/esri/> |
75+
| International Astronomical Union (IAU) | <http://www.opengis.net/def/crs/IAU> |
76+
| Open Geospatial Consortium (OGC) | <http://www.opengis.net/def/crs/OGC> |
77+
| ESRI | <https://spatialreference.org/ref/esri/> |
9678

9779
The `proj:code` field SHOULD be set to `null` in the following cases:
9880

examples/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"stac_version": "1.0.0",
33
"stac_extensions": [
4-
"https://stac-extensions.github.io/projection/v1.2.0/schema.json"
4+
"https://stac-extensions.github.io/projection/v2.0.0/schema.json"
55
],
66
"type": "Feature",
77
"id": "20201211_223832_CS2_A",

examples/collection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"stac_version": "1.0.0",
33
"stac_extensions": [
4-
"https://stac-extensions.github.io/projection/v1.2.0/schema.json",
4+
"https://stac-extensions.github.io/projection/v2.0.0/schema.json",
55
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
66
],
77
"type": "Collection",

examples/item.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"stac_version": "1.0.0",
33
"stac_extensions": [
4-
"https://stac-extensions.github.io/projection/v1.2.0/schema.json"
4+
"https://stac-extensions.github.io/projection/v2.0.0/schema.json"
55
],
66
"type": "Feature",
77
"id": "20201211_223832_CS2",
@@ -47,7 +47,6 @@
4747
"cool_sensor_v1"
4848
],
4949
"gsd": 0.66,
50-
"proj:epsg": 32659,
5150
"proj:code": "EPSG:32659",
5251
"proj:shape": [
5352
5558,

examples/item_custom_proj.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"stac_version": "1.0.0",
33
"stac_extensions": [
4-
"https://stac-extensions.github.io/projection/v1.2.0/schema.json"
4+
"https://stac-extensions.github.io/projection/v2.0.0/schema.json"
55
],
66
"type": "Feature",
77
"id": "20201211_223832_CS2",

json-schema/schema.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "https://stac-extensions.github.io/projection/v1.2.0/schema.json",
3+
"$id": "https://stac-extensions.github.io/projection/v2.0.0/schema.json",
44
"title": "Projection Extension",
55
"description": "STAC Projection Extension for STAC Items.",
66
"$comment": "This schema succeeds if the proj: fields are not used at all, please keep this in mind.",
@@ -77,22 +77,14 @@
7777
"stac_extensions": {
7878
"type": "array",
7979
"contains": {
80-
"const": "https://stac-extensions.github.io/projection/v1.2.0/schema.json"
80+
"const": "https://stac-extensions.github.io/projection/v2.0.0/schema.json"
8181
}
8282
}
8383
}
8484
},
8585
"fields": {
8686
"type": "object",
8787
"properties": {
88-
"proj:epsg":{
89-
"deprecated": true,
90-
"title":"EPSG code",
91-
"type":[
92-
"integer",
93-
"null"
94-
]
95-
},
9688
"proj:code":{
9789
"title":"Projection code",
9890
"type":[

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "stac-extensions",
3-
"version": "1.2.0",
3+
"version": "2.0.0",
44
"scripts": {
55
"test": "npm run check-markdown && npm run check-examples",
66
"check-markdown": "remark . -f -r .github/remark.yaml",
7-
"check-examples": "stac-node-validator . --lint --verbose --schemaMap https://stac-extensions.github.io/projection/v1.2.0/schema.json=./json-schema/schema.json",
8-
"format-examples": "stac-node-validator . --format --schemaMap https://stac-extensions.github.io/projection/v1.2.0/schema.json=./json-schema/schema.json"
7+
"check-examples": "stac-node-validator . --lint --verbose --schemaMap https://stac-extensions.github.io/projection/v2.0.0/schema.json=./json-schema/schema.json",
8+
"format-examples": "stac-node-validator . --format --schemaMap https://stac-extensions.github.io/projection/v2.0.0/schema.json=./json-schema/schema.json"
99
},
1010
"dependencies": {
1111
"remark-cli": "^8.0.0",

0 commit comments

Comments
 (0)