Geoportal Resources Access API Reference

Namespace: Layer

Gp.Services.Config.Layer

Object used to describe geoportal resource (WMTS, WMS, WFS layers, geocoding resources or elevation service) parameters. Properties may be used or not depending on the resource type.

Properties:
Name Type Description
name String

name of the resource to use with the webservice that serves it (eg : "GEOGRAPHICALGRIDSYSTEMS.MAPS").

title String

Human readable name for the resource.

description String

Resource description.

layerId String

Unique resource Identifier (eg : "GEOGRAPHICALGRIDSYSTEMS.MAPS$GEOPORTAIL:OGC:WMTS")

quicklookUrl String

Image URL for the resource.

serviceParams Object

Informations about the webservice that serves the resource (OpenLS, WFS, WMTS)

Properties
Name Type Description
id String

Web Service identifier ("OGC:WMTS", "OGC:OPENLS;ReverseGeocode", etc...)

serverUrl Object

Associative array mapping geoportal access key (keys) with their properties (URLs of the web service, with the geoportal access key).

version String

webservice version.

defaultProjection String

coordinates system ID used by default for the resource (WMS or WFS layer) or of the TileMatrixSet used by the WMTS layer.

additionalProjections Array.<String>

additional coordinates systems IDs availables for the resource, others than the default one (see defaultProjection) (WMS and WFS layers only).

formats Array.<Gp.Services.Config.Format>

Formats availables for the resource.

legends Array.<Gp.Services.Config.Legend>

Informations about legends associated to the resource.

metadata Array.<Gp.Services.Config.Metadata>

Informations about metadata associated to the resource.

styles Array.<Gp.Services.Config.Style>

Informations about styles availables for the resources (WMS, WFS and WMTS only).

thematics Array.<Gp.Services.Config.Thematic>

Informations about thematics associated to the resource.

globalConstraint Gp.Services.Config.Constraint

geographical constraint for the resource.

constraints Array.<Gp.Services.Config.Constraint>

additionnal geographical constraints for the resource.

originators Array.<Gp.Services.Config.Originator>

Informations about originator of the resource.

wmtsOptions Object

Informations associated to WMTS resources.

Properties
Name Type Description
tileMatrixSetLink String

TileMatrixSet identifier used by the resource (see Gp.Services.Config.TileMatrixSet)

tileMatrixSetLimits Gp.Services.Config.TileMatrixLimit

limits of the resource for that TileMAtrixSet.

queryable Boolean

true if a getFeatureInfo request may be done for the resource (WMS or WMTS only).

hidden Boolean

true if the resource is not visible.

isAggregate Boolean

true if the resource is an aggregate of other resources (@see aggregatedLayers).

aggregatedLayers Array.<String>

Layers IDs composing the being described aggregated layer.

apiKeys Array.<String>

Array of access keys that grant access to that resource.

dimensions Object

Dimensions informations associated with the resource.

Properties
Name Type Description
type String
visibilityRange String
visibilityMode String
noDataValue String
geometricType String

Methods

getAggregatedLayers(){Object}

Services/AutoConf/Response/model/Layer.js, line 299

Returns information about aggregated layers composing the being described layer, in case the resource is an aggregate of other resources.

Returns:
- Layers IDs composing the being described aggregated layer.

getBBOX(){Gp.BBox}

Services/AutoConf/Response/model/Layer.js, line 127

Returns the global BBOX

Returns:
- the layer global bounding box, expressed in CRS system.

getConstraints(){Array.<Gp.Services.Config.Constraint>}

Services/AutoConf/Response/model/Layer.js, line 272

Returns information about geographical or temporal constraints for the resource

Returns:
- Informations about geographical or temporal constraints for the resource

getDefaultFormat(){String}

Services/AutoConf/Response/model/Layer.js, line 252

Returns layer default format

Returns:
- Format mime-type. (eg. "image/jpeg")

getDefaultProjection(){String}

Services/AutoConf/Response/model/Layer.js, line 106

Returns the layer default projection

Returns:
- coordinates system ID used by default for the resource (WMS or WFS layer) or of the TileMatrixSet used by the WMTS layer.

getDefaultStyle(){String}

Services/AutoConf/Response/model/Layer.js, line 223

Returns layer default style

Returns:
- style identifier (eg : "normal", "bdparcellaire", ...)

getDescription(){String}

Services/AutoConf/Response/model/Layer.js, line 79

Returns the layer description

Returns:
- Resource description.

getDimensions(){Object}

Services/AutoConf/Response/model/Layer.js, line 290

Returns information about dimensions associated with this resource

Returns:
- Dimensions informations associated with the resource.

getLayerId(){String}

Services/AutoConf/Response/model/Layer.js, line 88

Returns the layer identifier

Returns:
- Unique resource Identifier (eg : "GEOGRAPHICALGRIDSYSTEMS.MAPS$GEOPORTAIL:OGC:WMTS")

getLegends(){Array.<Gp.Services.Config.Legend>}

Services/AutoConf/Response/model/Layer.js, line 196

Returns information about legends associated to the resource.

Returns:
- Informations about legends associated to the resource.

getMaxScaleDenominator(){Number}

Services/AutoConf/Response/model/Layer.js, line 151

Returns the layer maximum scale denominator

Returns:
- maximum scale denominator for this layer

getMetadata(){Array.<Gp.Services.Config.Metadata>}

Services/AutoConf/Response/model/Layer.js, line 205

Returns information about metadata associated to the resource.

Returns:
- Informations about metadata associated to the resource.

getMinScaleDenominator(){Number}

Services/AutoConf/Response/model/Layer.js, line 139

Returns the layer minimum scale denominator

Returns:
- minimum scale denominator for this layer

getName(){String}

Services/AutoConf/Response/model/Layer.js, line 61

Returns the layer name

Returns:
- name of the resource to use with the webservice that serves it (eg : "GEOGRAPHICALGRIDSYSTEMS.MAPS").

getOriginators(){Array.<Gp.Services.Config.Originator>}

Services/AutoConf/Response/model/Layer.js, line 281

Returns information about originators of this resource

Returns:
- Informations about originators of this resource

getProjections(){Array.<String>}

Services/AutoConf/Response/model/Layer.js, line 115

Returns the layer projections

Returns:
- coordinates systems IDs availables for the resource, including the default one.

getQuicklookUrl(){String}

Services/AutoConf/Response/model/Layer.js, line 97

Returns the layer quicklookUrl

Returns:
- Image URL for the resource.

getServerUrl(apiKey){String}

Services/AutoConf/Response/model/Layer.js, line 184

Returns Geoportal server url for a given key

Name Type Description
apiKey String

Access key to Geoportal platform

Returns:
- general URL of the web service (with the geoportal access key)

getServiceParams(){Object}

Services/AutoConf/Response/model/Layer.js, line 174

Returns information about the webservice that serves the resource

Returns:
- Information about the webservice that serves the resource (OpenLS, WFS, WMTS)

getStyles(){Array.<Gp.Services.Config.Style>}

Services/AutoConf/Response/model/Layer.js, line 214

Returns information about styles availables for the resources (WMS, WFS and WMTS only).

Returns:
- Informations about styles availables for the resources (WMS, WFS and WMTS only).

getThematics(){Array.<Gp.Services.Config.Thematic>}

Services/AutoConf/Response/model/Layer.js, line 243

Returns information about thematics associated to the resource.

Returns:
- Informations about thematics associated to the resource.

getTitle(){String}

Services/AutoConf/Response/model/Layer.js, line 70

Returns the layer title

Returns:
- Human readable name for the resource.

getTMSID(){String}

Services/AutoConf/Response/model/Layer.js, line 163

Returns layer Tile Matrix Set identifier if exists

Returns:
- Tile Matrix Set identifier (for instance : "PM")