WMS Server and SLD

Yewondwossen Assefa assefa at DMSOLUTIONS.CA
Thu Jul 6 13:21:49 EDT 2006


Joost,

  There is no current way to use sld instead of classes as a styling 
mechanism.  Coveting between the 2 seems to be the way. There are 
mapscript functions that can be used to do the conversions.

Later,

Van Ulden, Joost wrote:
> Thanks Mathieu,
> 
> I was looking for the server eqivalent.  I was hoping that there would be some way to use an SLD instead of hardcoding a CLASS in my mapfile.  If not I will just convert the SLD to mapserver CLASSES in code.  Any other ideas?
> 
> Cheers,
> 
> Joost 
> 
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] 
> Sent: Thursday, July 06, 2006 12:20 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] WMS Server and SLD
> 
> Hi,
> 
> By this way you can add a SLD...
> 'wms_sld_url' 'http://xml.sandre.eaufrance.fr/exist/Geo/sld/my_layer.xml'
> 
> For instance, in your map file :
> 
> LAYER
>     NAME 'my_layer'
>     TYPE RASTER 
> 
>     CONNECTION 'http://www.irep.ecologie.gouv.fr/geoservice?'
>     CONNECTIONTYPE WMS
>     METADATA
>       'wms_srs'             'EPSG:27582'
>       'wms_name'            'my_layer_name'
>       'wms_server_version'  '1.1.1'
>       'wms_format'          'image/png'
>       'wms_legend_graphic'   '1'
>       'wms_sld_url' 'http://xml.sandre.eaufrance.fr/exist/Geo/sld/IREP.xml'
>     END
>   END
> 
> Regards,
> 
> 
> -----Message d'origine-----
> De : UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] De la part de Van Ulden, Joost Envoyé : jeudi 6 juillet 2006 03:02 À : MAPSERVER-USERS at lists.umn.edu Objet : [UMN_MAPSERVER-USERS] WMS Server and SLD
> 
> Hi all,
> 
> Just wondering if there is a way to add an SLD url to a layer in WMS Server.
> 
> Thank you in advance,
> 
> ============================================
> Joost van Ulden
> Programmer/Analyst
> Natural Resources Canada / Ressources naturelles Canada Geological Survey of Canada / Commission geologique du Canada
> 101 - 605 Robson Street / 101 - 605 rue Robson Vancouver, B.C. / Vancouver (C.B.) V6B 5J3
> Office/Bureau: 604.666.7525
> fax/telecopieur: 604.666.1124
> jvanulde at nrcan.gc.ca
> ============================================
> 
> --
> Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.
> 
> Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.
> 
> Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized.
> 
> 
> --
> Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.
> 
> Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.
> 
> Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized.
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-users mailing list