Skip to content

Commit

Permalink
Merge pull request #175 from TDG-Platform/feature-add-type-to-asset
Browse files Browse the repository at this point in the history
add type to asset
  • Loading branch information
cholmes authored Aug 15, 2018
2 parents a3f8c95 + 4bde46c commit e7b6a6d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
6 changes: 5 additions & 1 deletion json-spec/json-schema/stac-item.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,18 @@
"asset": {
"type": "object",
"required": [
"href"
"href",
"mime_type"
],
"properties": {
"href": {
"type": "string"
},
"name": {
"type": "string"
},
"mime_type": {
"type": "string"
}
}
},
Expand Down
9 changes: 6 additions & 3 deletions json-spec/json-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,12 @@ as any 'sidecar' files that are related and help a client make sense of the data
JSON, etc), unusable data masks, satellite ephemeris data, etc. Some assets (like Landsat data) are represented by multiple files -
all should be linked to. It is generally recommended that different processing levels or formats are not exhaustively listed in an
`Item`, but instead are represented by related `Items` that are linked to, but the best practices around this are still emerging.
An asset object currently just requires a href field, which can be a relative or absolute link, to provide a link to the
asset for download or streaming access. The 'name' field is optional, and is generally the display name for clients & users.
The asset definition will likely evolve soon to be able to explain itself more.

***Assets required fields***
asset for download or streaming access. The 'name' field is optional, and is generally the display name for clients & users.
* href - link to the asset object. The link can be a relative or absolute link The asset definition will likely evolve soon to be able to explain itself more.
* mime_type - the mime type of the object. Prefered that standard mime types be used when possible. Type can include; image/geotiff, image/geotiff+cog, or type with a vendor prefix, example: vnd.digitalglobe/til
****We would like to register image/geotiff as a mime type with IANA****

**thumbnail** is a special *strongly recommended* `asset` that is a downsampled image of the core asset, for direct display online in a web page or
interactive search application. Even assets that are less easily translated in to a visual image should provide some visual representation,
Expand Down
2 changes: 0 additions & 2 deletions static-catalog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ _"Root" Catalog_
"url": "https://www.fsa.usda.gov/programs-and-services/aerial-photography/imagery-programs/naip-imagery/"
},

"formats": ["geotiff", "cog"],

"keywords": ["aerial"],
"homepage": "http://wherever",

Expand Down
7 changes: 0 additions & 7 deletions static-catalog/json-schema/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,6 @@
"contact": {
"$ref": "#/definitions/entity"
},
"formats": {
"description": "Included asset formats",
"type": "array",
"items": {
"type": "string"
}
},
"keywords": {
"description": "Keywords",
"type": "array",
Expand Down

0 comments on commit e7b6a6d

Please sign in to comment.