Class: spw.api.SpwCSWMetawal

Description

Classe permettant d'interroger le service CSW Metawal. Nécessaire car ce service ne respecte pas le standard

new SpwCSWMetawal()

Source:

Héritage

Overview

MembresMéthodes

Membres

defaultFilter

Filtre par défaut à appliquer aux requêtes
Inherited From:
Source:

defaultSort

Sort par défaut
Inherited From:
Source:

FilterBuilder

FilterBuilder pour construire le JSON du filtre facilement
Inherited From:
Source:

jsonixContext

Le context jsonix pour xml <-> json
Inherited From:
Source:

propertiesMapping

Mapping des propriétés CSW <-> propriétés json d'un record (pour avoir tout le temps la même interface pour un record)
Inherited From:
Source:

protocols

Les protocoles (esri-rest, wms...) possibles avec les informations permettant de le récupérer dans le record
Inherited From:
Source:

proxyPage

Pour communiquer avec le service csw
Inherited From:
Source:

serviceProperty

La propriété correspondant à un map service
Inherited From:
Source:

SortBuilder

SortBuiler pour construire le JSON du sort facilement
Inherited From:
Source:

url

L'url du service
Inherited From:
Source:

useCors

Utiliser CORS si le serveur le permet à la place de la page proxy
Inherited From:
Source:

Méthodes

_Constraint()

JSON correspondant à une contrainte (filtre)
Inherited From:
Source:

_GetCapabilities()

JSON correspondant au XML pour l'opération GetCapabilities
Inherited From:
Source:

_getCatalogServiceConfig()

Récupère la config depuis le catalogue pour un certain id
Inherited From:
Source:

_getMapServiceConfig()

Permet de récupérer la config du service pour l'ajouter ensuite
Inherited From:
Source:

_GetRecords()

JSON correspondant au XML pour l'opération GetRecords
Inherited From:
Source:

_mapRecordElement()

Mappe un record CSW en record avec une interface standard
Inherited From:
Source:

_mapServiceProperty()

Mappe la propriété pouvant correspondre à un map service
Inherited From:
Source:

_Query()

JSON correspondant à une Query (filter/sort)
Inherited From:
Source:

addServiceFromURI()

Ajoute le service d'un record
Inherited From:
Source:

GetCapabilities()

GetCapabilities du catalogue (pour récupérer les opérations possibles) TODO: on ne l'exploite pas encore...
Inherited From:
Source:

getFilterInfo(field)

Récupère les informations d'un filtre pour un certain champ
Paramètres:
Nom Type Description
field String le champ (i.e. 'type', 'title'...)
Inherited From:
Source:

GetRecords(start, max, opts, outputSchema)

Opération GetRecords (récupération des entrées)
Paramètres:
Nom Type Description
start Integer id du premier record à retourner
max Integer nombre max de records à retourner
opts Object filter et sort
outputSchema String schéma xml du record en sortie
Inherited From:
Source:

initContext()

Initialise le contexte jsonix, le mapping des propriétés et les protocoles
Source:

isMapService()

Est-ce que le record est un map service ?
Inherited From:
Source:

jsonToXml(json)

Convertit un JSON en XML
Paramètres:
Nom Type Description
json le JSON à convertir
Inherited From:
Source:

transformFilter(filter)

Transforme un filtre en JS classique en JS pour la transformation XML
Paramètres:
Nom Type Description
filter Array du type [ { field: 'dc:type', like: '%service%' } ]
Inherited From:
Source:

transformSort(sort)

Transforme un sort en JS classique en JS pour la transformation XML
Paramètres:
Nom Type Description
sort Array du type [ { field: 'dc:title', desc: true } ]
Inherited From:
Source:

xmlToJson(xml)

Convertit un XML en JSON
Paramètres:
Nom Type Description
xml le XML à convertir
Inherited From:
Source:

xmlToString(xml)

Convertit un XML en string
Paramètres:
Nom Type Description
xml le XML à convertir
Inherited From:
Source: