Strict Standards: Declaration of syntax_plugin_nextpage::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/web/wiki/lib/plugins/nextpage/syntax.php on line 69

Strict Standards: Declaration of syntax_plugin_nextpage::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/web/wiki/lib/plugins/nextpage/syntax.php on line 69

Warning: scandir(): Directory name cannot be empty in /var/www/html/web/wiki/lib/plugins/nextpage/syntax.php on line 61

Warning: Invalid argument supplied for foreach() in /var/www/html/web/wiki/lib/plugins/nextpage/syntax.php on line 62

Warning: array_search() expects parameter 2 to be array, null given in /var/www/html/web/wiki/lib/plugins/nextpage/syntax.php on line 63
Styled Layer Description (SLD) [Wiki]
Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site. Si vous continuez à utiliser ce dernier, nous considèrerons que vous acceptez l'utilisation des cookies. J'ai compris ! ou En savoir plus !.
banniere

Le portail francophone de la géomatique


Toujours pas inscrit ? Mot de passe oublié ?

Ceci est une ancienne révision du document !



Strict Standards: Declaration of syntax_plugin_tag_topic::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/web/wiki/lib/plugins/tag/syntax/topic.php on line 123

Strict Standards: Declaration of syntax_plugin_tag_topic::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/web/wiki/lib/plugins/tag/syntax/topic.php on line 123

Strict Standards: Declaration of syntax_plugin_tag_searchtags::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/web/wiki/lib/plugins/tag/syntax/searchtags.php on line 280

Strict Standards: Declaration of syntax_plugin_tag_searchtags::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/web/wiki/lib/plugins/tag/syntax/searchtags.php on line 280

Strict Standards: Declaration of syntax_plugin_tag_tag::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/web/wiki/lib/plugins/tag/syntax/tag.php on line 118

Strict Standards: Declaration of syntax_plugin_tag_tag::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/web/wiki/lib/plugins/tag/syntax/tag.php on line 118

Strict Standards: Declaration of syntax_plugin_tag_count::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/web/wiki/lib/plugins/tag/syntax/count.php on line 130

Strict Standards: Declaration of syntax_plugin_tag_count::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/web/wiki/lib/plugins/tag/syntax/count.php on line 130

Strict Standards: Declaration of syntax_plugin_tag_tagpage::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/web/wiki/lib/plugins/tag/syntax/tagpage.php on line 96

Strict Standards: Declaration of syntax_plugin_tag_tagpage::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/web/wiki/lib/plugins/tag/syntax/tagpage.php on line 96

Strict Standards: Declaration of syntax_plugin_clearfloat::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/web/wiki/lib/plugins/clearfloat/syntax.php on line 74

Strict Standards: Declaration of syntax_plugin_clearfloat::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/web/wiki/lib/plugins/clearfloat/syntax.php on line 74

Strict Standards: Declaration of syntax_plugin_pageindex::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/web/wiki/lib/plugins/pageindex/syntax.php on line 187

Strict Standards: Declaration of syntax_plugin_pageindex::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/web/wiki/lib/plugins/pageindex/syntax.php on line 187

Strict Standards: Declaration of syntax_plugin_googlemaps_googlemap::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/web/wiki/lib/plugins/googlemaps/syntax/googlemap.php on line 169

Strict Standards: Declaration of syntax_plugin_googlemaps_googlemap::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/web/wiki/lib/plugins/googlemaps/syntax/googlemap.php on line 169

Strict Standards: Declaration of syntax_plugin_include::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/web/wiki/lib/plugins/include/syntax.php on line 137

Strict Standards: Declaration of syntax_plugin_include::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/web/wiki/lib/plugins/include/syntax.php on line 137
Plugin installed incorrectly. Rename plugin directory 'backlinks.old' to 'backlinks'.

Styled Layer Description (SLD)

Description

Le standard SLD ajoute de nouvelles fonctionnalités aux standards WMS. Ces ajouts concernent la gestion de la sémiologie des couches côté serveur afin de modifier ou récupérer les styles des couches au niveau du serveur et côté client dans la mesure où il propose un langage XML pour définir la sémiologie d'une couche.

Le standard SLD peut être donc découpé en deux parties :

  • la description sémiologique de rendu des couches en xml ;
  • la description des requêtes afin d'agir sur les styles côté serveur.

Le standard SLD repose sur un autre standard appelé SE (Style Encoding) qui décrit la sémiologie d'une couche en xml.

Fonctionnement

Comme tout standard, celui du SLD propose une structuration des URL pour réaliser différentes types de requête :

  • DescribeLayer : récupère la description des couches ;
  • GetStyles : récupère les styles au format XML ;
  • PutStyles : envoie des styles au serveur ;
  • GetLegendGraphic : récupère la légende d'une couche au format image.

Requêtes

DescribeLayer

Permet d'obtenir des informations sur la couche, telle que le type de données (raster, polygon, point ou ligne).

GetStyles

Permet d'obtenir les styles pour chaque couches au format XML.

Les paramètres obligatoires sont :

  • LAYERS = nomCouche : nom des couches dont on veut récupérer le style
  • VERSION = x.y.z : numéro de la version du standard à utiliser (1.1.0 par exemple)
  • REQUEST = GetStyles : type de requête

Les paramètres optionnels sont :

  • SLDVER = 1.0.0

PutStyles

Modifie le style d'une couche.

Les paramètres obligatoires sont :

  • VERSION = x.y.z : numéro de la version du standard à utiliser (1.1.0 par exemple)
  • REQUEST = PutStyles : type de requête
  • MODE= :

Les paramètres optionnels sont :

  • SLD= : url vers un fichier SLD à envoyer au serveur
  • SLD_BODY= : description en XML des styles à envoyer au serveur

GetLegendGraphic

Permet d'obtenir une légende au format image.

Les paramètres obligatoires sont :

  • LAYER =nomCouche : nom de la couche dont on veut récupérer la légende
  • VERSION = 1.1.0 (par exemple) : numéro de la version du standard à utiliser (1.1.0 par exemple)
  • REQUEST = GetLegendGraphic: type de requête
  • FORMAT=jpeg : format de l'image de légende

Les paramètres optionnels sont :

  • STYLE : nom du style à utiliser. Ce style doit être définie côté serveur (voir GetCapabilities du standard WMS pour récupérer la liste des styles proposés par le service WMS).
  • FEATURETYPE :
  • RULE :
  • SCALE :
  • SLD : url vers un fichier SLD à envoyer au serveur
  • SLD_BODY : description en XML des styles à envoyer au serveur
  • WITDH : largeur de la légende
  • HEIGHT : hauteur de la légende
  • EXCEPTIONS : gestion des erreurs (image blanche, code xml, erreur dans une image)

Voici un exemple de requête GetLegendGraphic issu de l'exemple GetMap du standard WMS : http://oceanwatch.pfeg.noaa.gov/thredds/wms/SODA/2.0.3?SERVICE=SLD&VERSION=1.1.0&REQUEST=GetLegendGraphic&LAYER=temp&LAYERS=temp&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&WIDTH=256&HEIGHT=256

SLD et WMS

Comme dit dans l'introduction le standard SLD permet d'étendre le standard WMS. On retrouve ainsi le paramètre SLD ou SLD_BODY dans les requêtes WMS compatible SLD. Ces deux paramètres exclusifs l'un l'autre permettent de définir la sémiologie d'une couche via respectivement un fichier SLD disponible par Internet (paramètre SLD) et directement en XML dans l'URL (paramètre SLD_BODY).

Bibliographie

  1. WMS et Représentation multiples - Intégration de la spécification SLD dans le Géoproxy; Travail de semestre de Nicolas Ferreira - HEIG-VD (2008): http://www.asitvd.ch (publication / rapports)

 
main/standards/sld.1286712922.txt.gz · Dernière modification: 2010/10/10 14:15 par Yves
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki