Technical documentation of Geoportal API

  • FR
  • UK

Index / Documentation / Technical documentation

Ajout de couches raster

Adding a WMS layer 
Adding a WMTS layer

It is important to note that Geoportal layers are projected under a specific projection (IGNF:GEOPORTAL*, IGNF:MILLER, See RIG). As such, any other image based service (like WMS, WMTS, WMS-C and al) has to be :

  • either in the same projection (mandatory for IGNF:MILLER);
  • or in plate-carre (EPSG:4326 or equivalent).

The Geoportal API also allows to display Geoportal's layers in plate-carre (IGNF:RGF93G, compatible with EPSG:4326) and other layers must be under the same plate-carre projection.

Adding a WMS layer

Service parameters specific to WMS layers:

  • mandatory parameters:
    • layers : array containing the names of layers to display
  • optional parameters:
    • transparent : true (the layer is transparent), false otherwise.
    • format : format of the returned image, image / png 'for example.

Layer parameters specific to WMS layers:

In addition to the optional parameters of layers here, we have:

  • mandatory parameters:
    • projection: layer's projection. Example: 'EPSG:4326'.
  • optional parameters:
    • units: 'm' or 'degrees'
    • ratio: determines the size of the application server-side relative to the size of the map of the window.
    • singleTile:

Adding a WMTS layer

Service parameters specific to WMTS layers::

Contains all the necessary settings of the parameters of WMTS as layer, style, format, etc. ...

Paramètres de couche spécifiques aux couches wmts:

In addition to the optional parameters of layers, here, we find:

  • mandatory parameters:
    • projection: layer's projection. Example: 'EPSG:4326'.
      • tileOrigin : indicates the origin of the tiles. By default, this is the (0, 0) in the reference system of coordinates projection.
      • matrixIds : indicates the resolutions of the cache. By default, these are the geoportal's in spherical Web Mercator projection.
      • matrixSet :
  • optional parameters:
    • units: 'm' or 'degrees'