< Search

WMS Browser Light >

## 24. OGC Layer Loader

## 24.1. Introduction

The `ogcLayerLoader` plugin allows user to add OGC layers such as WMS and WFS through a call by URL.

For exemple, using a simple URL, you could call your cartoweb project and add an OGC layer at startup.

Once the layer added, the coreplugin Layer will be called to update user layers. Added layer could then be used by other plugin in the project (legend, layer reorder, ...). This plugin is used by wmsBrowserLight and catalog to add OGC layers to the map.

## 24.2. Plugin Activation

To activate the plugin, load from both CartoClient and CartoServer configuration files: `client_conf/client.ini` and `server_conf/"mapId"/"mapId".ini`. For instance:

    loadPlugins = mapOverlay, ogcLayerLoader

## 24.3. Define where to insert OGC layers

To do so, in `server_conf/"mapId"/ogcLayerLoader.ini`, set the following parameters in the ini file of the plugin.

    ogcInsertLayerAfter = raster ; raster is the name of the layer

## 24.4. Specify in which layergroup you want to insert OGC layers

To do so, in `client_conf/layers.ini`, set the following parameters in the ini file of the layers coreplugin.

    userLayerGroup = root ; root is the name of the layerGroup in which user layers will be added

## 24.5. Define where to link a geonetwork catalog

To do so, in `client_conf/ogcLayerLoader.ini`, set the following parameters in the ini file of the plugin.

    urlCatalog = http://my.linked.geonetwork.catalog ;