-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Create aerial photography extension (#66)
* feat: Create aerial photography extension * fix: required field format * fix: add non-examples * fix: change name from aerial_photo to aerial-photo * fix: change README.md title to Aerial Photography
- Loading branch information
Showing
9 changed files
with
233 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Aerial Photography Extension Specification | ||
|
||
**This is a work in progress and has not been reviewed everything is likely to change** | ||
|
||
- **Title**: Aerial Photography | ||
- **Identifier**: | ||
[https://linz.github.io/stac/_STAC_VERSION_/film/aerial-photo.json]() | ||
- **Field Name Prefix**: aerial-photo | ||
- **Scope**: Item | ||
- **Extension Classification**: Work In Progress (Before proposal) | ||
|
||
## Item Properties or Asset Fields | ||
|
||
| Field Name | Type | Description | | ||
| ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------------- | | ||
| aerial-photo:run | string | **REQUIRED** A straight line/pass of sequential imagery flown during a specific survey. | | ||
| aerial-photo:altitude | integer | Altitude in feet at which the plane was flying when the photo was taken. | | ||
| aerial-photo:scale | integer | Denominator of the distance on the ground relative to the distance on the physical film negative for a photo. | | ||
| aerial-photo:sequence_number | integer | **REQUIRED** Sequential order of photos taken during a run. | | ||
| aerial-photo:anomalies | string | Comments about unusual things noticed in the image. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"stac_version": "1.0.0", | ||
"stac_extensions": ["https://linz.github.io/stac/_STAC_VERSION_/aerial-photo/schema.json"], | ||
"type": "Feature", | ||
"id": "72360", | ||
"geometry": null, | ||
"properties": { | ||
"datetime": "1952-04-23T00:00:00.000Z", | ||
"platform": "Fixed-wing Aircraft", | ||
"instruments": ["EAGLE IV"], | ||
"mission": "SURVEY_1", | ||
"aerial-photo:run": "P1", | ||
"aerial-photo:altitude": 3325, | ||
"aerial-photo:scale": 4800, | ||
"aerial-photo:sequence_number": 14, | ||
"aerial-photo:anomalies": "Cloud shadow" | ||
}, | ||
"links": [], | ||
"assets": { | ||
"image/tiff; application=geotiff; profile=cloud-optimized": { | ||
"href": "./72360.tiff", | ||
"type": "image/tiff; application=geotiff; profile=cloud-optimized", | ||
"file:checksum": "1220b7deb18ad9dc6f3f94df60c26dd235a019946b8b6b7d1a36f100a8f9f1889130" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"stac_version": "1.0.0", | ||
"stac_extensions": ["https://linz.github.io/stac/_STAC_VERSION_/aerial-photo/schema.json"], | ||
"description": "This is a non-conformant STAC example using the aerial photography extension. It is missing the mandatory aerial-photo:run property.", | ||
"type": "Feature", | ||
"id": "72360", | ||
"geometry": null, | ||
"properties": { | ||
"datetime": "1952-04-23T00:00:00.000Z", | ||
"platform": "Fixed-wing Aircraft", | ||
"instruments": ["EAGLE IV"], | ||
"mission": "SURVEY_1", | ||
"aerial-photo:altitude": 3325, | ||
"aerial-photo:scale": 4800, | ||
"aerial-photo:sequence_number": 14, | ||
"aerial-photo:anomalies": "Cloud shadow" | ||
}, | ||
"links": [], | ||
"assets": { | ||
"image/tiff; application=geotiff; profile=cloud-optimized": { | ||
"href": "./72360.tiff", | ||
"type": "image/tiff; application=geotiff; profile=cloud-optimized", | ||
"file:checksum": "1220b7deb18ad9dc6f3f94df60c26dd235a019946b8b6b7d1a36f100a8f9f1889130" | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
extensions/aerial-photo/non-examples/no_sequence_number.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"stac_version": "1.0.0", | ||
"stac_extensions": ["https://linz.github.io/stac/_STAC_VERSION_/aerial-photo/schema.json"], | ||
"description": "This is a non-conformant STAC example using the aerial photography extension. It is missing the mandatory aerial-photo:sequence_number property.", | ||
"type": "Feature", | ||
"id": "72360", | ||
"geometry": null, | ||
"properties": { | ||
"datetime": "1952-04-23T00:00:00.000Z", | ||
"platform": "Fixed-wing Aircraft", | ||
"instruments": ["EAGLE IV"], | ||
"mission": "SURVEY_1", | ||
"aerial-photo:run": "P1", | ||
"aerial-photo:altitude": 3325, | ||
"aerial-photo:scale": 4800, | ||
"aerial-photo:anomalies": "Cloud shadow" | ||
}, | ||
"links": [], | ||
"assets": { | ||
"image/tiff; application=geotiff; profile=cloud-optimized": { | ||
"href": "./72360.tiff", | ||
"type": "image/tiff; application=geotiff; profile=cloud-optimized", | ||
"file:checksum": "1220b7deb18ad9dc6f3f94df60c26dd235a019946b8b6b7d1a36f100a8f9f1889130" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"stac_version": "1.0.0", | ||
"stac_extensions": ["https://linz.github.io/stac/_STAC_VERSION_/aerial-photo/schema.json"], | ||
"description": "This is a non-conformant STAC example using the aerial photography extension. The aerial-photo:run field is an integer instead of a string.", | ||
"type": "Feature", | ||
"id": "72360", | ||
"geometry": null, | ||
"properties": { | ||
"datetime": "1952-04-23T00:00:00.000Z", | ||
"platform": "Fixed-wing Aircraft", | ||
"instruments": ["EAGLE IV"], | ||
"mission": "SURVEY_1", | ||
"aerial-photo:run": 248, | ||
"aerial-photo:altitude": 3325, | ||
"aerial-photo:scale": 4800, | ||
"aerial-photo:sequence_number": 14, | ||
"aerial-photo:anomalies": "Cloud shadow" | ||
}, | ||
"links": [], | ||
"assets": { | ||
"image/tiff; application=geotiff; profile=cloud-optimized": { | ||
"href": "./72360.tiff", | ||
"type": "image/tiff; application=geotiff; profile=cloud-optimized", | ||
"file:checksum": "1220b7deb18ad9dc6f3f94df60c26dd235a019946b8b6b7d1a36f100a8f9f1889130" | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
extensions/aerial-photo/non-examples/sequence_number_string.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"stac_version": "1.0.0", | ||
"stac_extensions": ["https://linz.github.io/stac/_STAC_VERSION_/aerial-photo/schema.json"], | ||
"description": "This is a non-conformant STAC example using the aerial photography extension. The aerial-photo:sequence_number field is a string instead of an integer.", | ||
"type": "Feature", | ||
"id": "72360", | ||
"geometry": null, | ||
"properties": { | ||
"datetime": "1952-04-23T00:00:00.000Z", | ||
"platform": "Fixed-wing Aircraft", | ||
"instruments": ["EAGLE IV"], | ||
"mission": "SURVEY_1", | ||
"aerial-photo:run": "P1", | ||
"aerial-photo:altitude": 3325, | ||
"aerial-photo:scale": 4800, | ||
"aerial-photo:sequence_number": "incorrect string", | ||
"aerial-photo:anomalies": "Cloud shadow" | ||
}, | ||
"links": [], | ||
"assets": { | ||
"image/tiff; application=geotiff; profile=cloud-optimized": { | ||
"href": "./72360.tiff", | ||
"type": "image/tiff; application=geotiff; profile=cloud-optimized", | ||
"file:checksum": "1220b7deb18ad9dc6f3f94df60c26dd235a019946b8b6b7d1a36f100a8f9f1889130" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://linz.github.io/stac/_STAC_VERSION_/aerial-photo/schema.json", | ||
"title": "Aerial Photography Extension", | ||
"description": "STAC Aerial Photography Extension for STAC Items.", | ||
"allOf": [ | ||
{ | ||
"type": "object", | ||
"required": ["type", "properties", "assets"], | ||
"properties": { | ||
"type": { | ||
"const": "Feature" | ||
}, | ||
"properties": { | ||
"allOf": [ | ||
{ | ||
"required": ["aerial-photo:run", "aerial-photo:sequence_number"] | ||
}, | ||
{ | ||
"$ref": "#/definitions/fields" | ||
} | ||
] | ||
}, | ||
"assets": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "#/definitions/fields" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"$ref": "#/definitions/stac_extensions" | ||
} | ||
], | ||
"definitions": { | ||
"stac_extensions": { | ||
"type": "object", | ||
"required": ["stac_extensions"], | ||
"properties": { | ||
"stac_extensions": { | ||
"type": "array", | ||
"contains": { | ||
"const": "https://linz.github.io/stac/_STAC_VERSION_/aerial-photo/schema.json" | ||
} | ||
} | ||
} | ||
}, | ||
"fields": { | ||
"type": "object", | ||
"properties": { | ||
"aerial-photo:run": { | ||
"title": "Straight line/pass of sequential imagery", | ||
"type": "string" | ||
}, | ||
"aerial-photo:altitude": { | ||
"title": "Altitude in feet", | ||
"type": "integer" | ||
}, | ||
"aerial-photo:scale": { | ||
"title": "Scale denominator", | ||
"type": "integer" | ||
}, | ||
"aerial-photo:sequence_number": { | ||
"title": "Sequential order", | ||
"type": "integer" | ||
}, | ||
"aerial-photo:anomalies": { | ||
"title": "Image anomalies", | ||
"type": "string" | ||
} | ||
}, | ||
"patternProperties": { | ||
"^(?!aerial-photo:)": {} | ||
}, | ||
"additionalProperties": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters