generated from linz/template-javascript-hello-world
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#### Motivation The previous logic to construct the ODR path has partially been replaced by the `linz:slug` field that is constructed in the [stac-setup Argo Tasks command](https://github.com/linz/argo-tasks/tree/master/src/commands/stac-setup). `generate-path` can be simplified to use the pre-constructed slug when publishing to the ODR. #### Modification - Read the `linz:slug` field from the standardised collection.json file and use this to construct the ODR path. - Remove unused functions from the `generate-path` command. - Refactor where it makes sense to reduce duplication of code. #### Checklist - [x] Tests updated - [x] Docs updated - [x] Issue linked in Title --------- Co-authored-by: paulfouquet <[email protected]> Co-authored-by: Blayne Chard <[email protected]>
- Loading branch information
1 parent
40e8e0e
commit 48c29ac
Showing
15 changed files
with
147 additions
and
345 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,48 +1,47 @@ | ||
import { StacCollection } from 'stac-ts'; | ||
|
||
import { StacCollectionLinz } from '../path.generate.js'; | ||
import { StacCollectionLinz } from '../../../utils/metadata.js'; | ||
|
||
export const SampleCollection: StacCollection & StacCollectionLinz = { | ||
type: 'Collection', | ||
stac_version: '1.0.0', | ||
id: '01HGF4RAQSM53Z26Y7C27T1GMB', | ||
title: 'Palmerston North 0.3m Storm Satellite Imagery (2024) - Preview', | ||
description: | ||
'Satellite imagery within the Manawatū-Whanganui region captured in 2024, published as a record of the Storm event.', | ||
id: '01J0Q2CCGQKXK0TSBEJ4HRKR2X', | ||
title: 'Palmerston North 0.3m Urban Aerial Photos (2024)', | ||
description: 'Orthophotography within the Manawatū-Whanganui region captured in the 2024 flying season.', | ||
license: 'CC-BY-4.0', | ||
links: [ | ||
{ rel: 'self', href: './collection.json', type: 'application/json' }, | ||
{ | ||
rel: 'item', | ||
href: './BA34_1000_3040.json', | ||
href: './BM34_1000_3040.json', | ||
type: 'application/json', | ||
}, | ||
{ | ||
rel: 'item', | ||
href: './BA34_1000_3041.json', | ||
href: './BM34_1000_3041.json', | ||
type: 'application/json', | ||
}, | ||
], | ||
providers: [ | ||
{ name: 'Aerial Surveys', roles: ['producer'] }, | ||
{ name: 'Aerial Surveys', roles: ['licensor'] }, | ||
{ name: 'Palmerston North City Council', roles: ['licensor'] }, | ||
{ | ||
name: 'Toitū Te Whenua Land Information New Zealand', | ||
roles: ['host', 'processor'], | ||
}, | ||
], | ||
'linz:lifecycle': 'preview', | ||
'linz:lifecycle': 'completed', | ||
'linz:geospatial_category': 'urban-aerial-photos', | ||
'linz:region': 'manawatu-whanganui', | ||
'linz:slug': 'palmerston-north_2024_0.3m', | ||
'linz:security_classification': 'unclassified', | ||
'linz:event_name': 'Storm', | ||
'linz:geographic_description': 'Palmerston North', | ||
extent: { | ||
spatial: { | ||
bbox: [[175.4961876, -36.8000575, 175.5071491, -36.7933469]], | ||
}, | ||
temporal: { | ||
interval: [['2022-12-31T11:00:00Z', '2022-12-31T11:00:00Z']], | ||
interval: [['2024-02-14T11:00:00Z', '2024-04-28T12:00:00Z']], | ||
}, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.