Skip to content

Commit 82816d4

Browse files
committed
Replace geometry_type with vector:geometry_type
1 parent 3335868 commit 82816d4

4 files changed

Lines changed: 9 additions & 29 deletions

File tree

CHANGELOG.md

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

1010
### Added
1111

12-
- Added `geometry_type` property to Column Object
1312
- Added `table:primary_datetime`
1413
- Allow most fields also in the Asset Object
1514

README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,30 +84,19 @@ Column objects contain information about each colum in the table.
8484
| name | string | **REQUIRED**. The column name. |
8585
| description | string | Detailed multi-line description to explain the dimension. CommonMark 0.29 syntax MAY be used for rich text representation. |
8686
| type | string | Native data type of the column. If using a file format with a type system (like Parquet), we recommend you use those types. |
87-
| geometry_type | string | Geometry type provided by the column. Only applies to geometry columns, e.g. the column identified by the `table:primary_geometry`. |
8887

8988
Other properties such as `description`, `license`, `unit`, `data_type` and `statistics` from
9089
[STAC common metadata](https://github.com/radiantearth/stac-spec/blob/master/commons/common-metadata.md)
9190
can be used in the Column Object.
9291

92+
It is also recommended to add `vector:geometry_types` from the [Vector Extension](https://github.com/stac-extensions/vector)
93+
to the column that describe geometry data, e.g. the column identified by the `table:primary_geometry` field.
94+
9395
`type` and `data_type` describe the same information, but `type` should use the native name in the given file format and `data_type` describes the [standardized data type name according to the STAC specification](https://github.com/radiantearth/stac-spec/blob/master/commons/common-metadata.md#data-types).
9496

9597
Columns can also include additional information from other extensions that are not otherwise covered on the asset-level
9698
and are column specific, e.g. [projection] extension information for additional geometry columns.
9799

98-
### geometry_type
99-
100-
Describes the geometry type provided by the column. Do not provide the property, if mixed geometry types occur.
101-
102-
Must be one of the GeoJSON geometry types:
103-
104-
- `Point`
105-
- `MultiPoint`
106-
- `LineString`
107-
- `MultiLineString`
108-
- `Polygon`
109-
- `MultiPolygon`
110-
111100
## Table Object
112101

113102
**DEPRECATED:** Table objects contain high-level summaries about a table.

examples/collection.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"stac_version": "1.1.0",
33
"stac_extensions": [
4-
"https://stac-extensions.github.io/table/v1.2.0/schema.json"
4+
"https://stac-extensions.github.io/table/v1.2.0/schema.json",
5+
"https://stac-extensions.github.io/vector/v0.1.0/schema.json"
56
],
67
"type": "Collection",
78
"id": "collection",
@@ -36,7 +37,9 @@
3637
"name": "geometry",
3738
"description": "The observation location.",
3839
"type": "binary",
39-
"geometry_type": "Polygon"
40+
"vector:geometry_types": [
41+
"Polygon"
42+
]
4043
},
4144
{
4245
"name": "datetime",
@@ -80,4 +83,4 @@
8083
"rel": "item"
8184
}
8285
]
83-
}
86+
}

json-schema/schema.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -192,17 +192,6 @@
192192
"type": {
193193
"type": "string",
194194
"minLength": 1
195-
},
196-
"geometry_type": {
197-
"type": "string",
198-
"enum": [
199-
"Point",
200-
"LineString",
201-
"Polygon",
202-
"MultiPoint",
203-
"MultiLineString",
204-
"MultiPolygon"
205-
]
206195
}
207196
}
208197
}

0 commit comments

Comments
 (0)