Skip to content

Commit fa00c5d

Browse files
authored
update parquet and zarr media types, add others (#1554)
* update parquet and zarr media types, add others * changelog'
1 parent 94dbcb8 commit fa00c5d

File tree

3 files changed

+123
-83
lines changed

3 files changed

+123
-83
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## [Unreleased]
44

5+
### Added
6+
7+
- Added to pystac.MediaType values VND_APACHE_PARQUET and VND_ZARR with the current standard
8+
media type value for these types and new media types COPC and VND_PMTILES
9+
([#1554](https://github.com/stac-utils/pystac/pull/1554))
10+
511
## [v1.13.0] - 2025-04-15
612

713
### Added

pystac/media_type.py

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,39 @@ class MediaType(StringEnum):
1515
JPEG = "image/jpeg"
1616
JPEG2000 = "image/jp2"
1717
JSON = "application/json"
18-
PARQUET = "application/x-parquet" # https://github.com/opengeospatial/geoparquet/issues/115#issuecomment-1181549523
1918
PNG = "image/png"
2019
TEXT = "text/plain"
2120
TIFF = "image/tiff"
2221
KML = "application/vnd.google-earth.kml+xml"
2322
XML = "application/xml"
2423
PDF = "application/pdf"
25-
ZARR = "application/vnd+zarr" # https://github.com/openMetadataInitiative/openMINDS_core/blob/v4/instances/data/contentTypes/zarr.jsonld
26-
NETCDF = "application/netcdf" # https://github.com/Unidata/netcdf/issues/42#issuecomment-1007618822
24+
25+
# https://github.com/Unidata/netcdf/issues/42#issuecomment-1007618822
26+
NETCDF = "application/netcdf"
27+
28+
# Cloud Optimized Point Cloud
29+
COPC = "application/vnd.laszip+copc"
30+
31+
# https://github.com/protomaps/PMTiles/blob/main/spec/v3/spec.md#1-abstract
32+
VND_PMTILES = "application/vnd.pmtiles" # Protomaps PMTiles
33+
34+
# https://www.iana.org/assignments/media-types/application/vnd.apache.parquet
35+
VND_APACHE_PARQUET = "application/vnd.apache.parquet"
36+
37+
# https://humanbrainproject.github.io/openMINDS/v3/core/v4/data/contentType.html
38+
VND_ZARR = "application/vnd.zarr"
39+
40+
##############
41+
# DEPRECATED #
42+
##############
43+
44+
# https://github.com/opengeospatial/geoparquet/issues/115#issuecomment-1181549523
45+
# deprecated, use VND_APACHE_PARQUET instead
46+
PARQUET = "application/x-parquet"
47+
48+
# https://github.com/openMetadataInitiative/openMINDS_core/blob/v4/instances/data/contentTypes/zarr.jsonld
49+
# deprecated, use VND_ZARR instead
50+
ZARR = "application/vnd+zarr"
2751

2852

2953
#: Media types that can be resolved as STAC Objects

0 commit comments

Comments
 (0)