Skip to content

Commit

Permalink
feat(service-metadata): support spatial index service iso19139
Browse files Browse the repository at this point in the history
  • Loading branch information
AlitaBernachot committed Jan 20, 2025
1 parent de1b9e3 commit aa5da17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ export const GEOCAT_CH_SERVICE_RECORD: ServiceRecord = {
id: 'geonetwork.thesaurus.external.theme.gemet',
name: 'GEMET',
url: new URL(
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
),
},
type: 'other',
Expand Down Expand Up @@ -798,4 +798,12 @@ export const GEOCAT_CH_SERVICE_RECORD: ServiceRecord = {
en: '',
},
},
spatialExtents: [
{
bbox: [
8.749927283333331, 46.853613697777774, 9.697637729444445, 47.5586926625,
],
translations: {}
},
],
}
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ export class Iso19139Converter extends BaseConverter<string> {
const otherLanguages = this.readers['otherLanguages'](rootEl, tr)
const defaultLanguage = this.readers['defaultLanguage'](rootEl, tr)
const resourceIdentifier = this.readers['resourceIdentifier'](rootEl, tr)
const spatialExtents = this.readers['spatialExtents'](rootEl, tr)

if (kind === 'dataset') {
const status = this.readers['status'](rootEl, tr)
const spatialRepresentation = this.readers['spatialRepresentation'](
rootEl,
tr
)
const spatialExtents = this.readers['spatialExtents'](rootEl, tr)
const temporalExtents = this.readers['temporalExtents'](rootEl, tr)
const lineage = this.readers['lineage'](rootEl, tr)
const updateFrequency = this.readers['updateFrequency'](rootEl, tr)
Expand Down Expand Up @@ -306,6 +306,7 @@ export class Iso19139Converter extends BaseConverter<string> {
licenses,
legalConstraints,
securityConstraints,
spatialExtents,
otherConstraints,
overviews,
onlineResources,
Expand Down

0 comments on commit aa5da17

Please sign in to comment.