WMS Server and SLD

Paul Ramsey pramsey at REFRACTIONS.NET
Thu Jul 6 13:21:45 EDT 2006


There's no server equivalent, but Mapserver will respect WMS requests 
that also reference a remote SLD, so if you can control your client 
requests, you can have all the requests reference the remote SLD 
document.  That sounds more confusing than it is, I hope.

Paul

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.



More information about the mapserver-users mailing list