How to enable SLD in Mapserver?
Bobby Fung
bobbyfung at HOTMAIL.COM
Mon May 9 12:04:32 PDT 2005
This is the url with sld parameter:
http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserver/service/config.map&version=1.1.1&service=WMS&request=GetMap&srs=EPSG:4326&bbox=-180,-90,180,90&format=image/png&layers=land_shallow_topo_2048,rivers&styles=,&transparent=true&width=500&height=300&sld=http://192.168.3.102/mapserver/sld/rivers.sld
And this is the url without sld:
http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserver/service/config.map&version=1.1.1&service=WMS&request=GetMap&srs=EPSG:4326&bbox=-180,-90,180,90&format=image/png&layers=land_shallow_topo_2048,rivers&styles=,&transparent=true&width=500&height=300
I got exactly a same image from these two url....
----- Original Message -----
From: "Bobby Fung" <bobbyfung at hotmail.com>
To: "Kralidis,Tom [Burlington]" <Tom.Kralidis at ec.gc.ca>;
<MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Monday, May 09, 2005 4:01 PM
Subject: Re: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver?
> The problem is that the map I got from mapserver throught WMS looks the
> same
> as I didn't included the SLD parameter. And I am sure that the SLD script
> and the mapfile is correct since I took them directly from "MapServer OGC
> Web Services Workshop".
>
> I have attached the mapfile and sld file to this email anyway.
>
> Thanks!
>
> ----- Original Message -----
> From: "Kralidis,Tom [Burlington]" <Tom.Kralidis at ec.gc.ca>
> To: "Libo Feng" <bobbyfung at HOTMAIL.COM>; <MAPSERVER-USERS at LISTS.UMN.EDU>
> Sent: Monday, May 09, 2005 3:45 PM
> Subject: RE: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver?
>
>
>
>
>> -----Original Message-----
>> From: UMN MapServer Users List
>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Libo Feng
>> Sent: Monday, 09 May, 2005 14:37
>> To: MAPSERVER-USERS at LISTS.UMN.EDU
>> Subject: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver?
>>
>>
>> Hello,
>>
>> I tried to enalbe SLD on my Mapserver but I can't make it
>> work. The following is the parameters that I used to
>> configure the Makefile:
>>
>> ./configure --without-tiff --without-eppl --with-threads
>> --with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr
>> --with-gd=/usr/local --with-freetype=/usr/bin --with-ming
>> --with-wmsclient --with-wfs --with-wfsclient
>>
>>
>> The mapserv CGI works all right but it just won't take my SLD
>> script. I tested with the mapfile, sld scipt and shape files
>> from the "MapServer OGC Web Services Workshop"
>> (http://devgeo.cciw.ca/ms_ogc_workshop/index.html)
>> and it doesn't work either. So I think it's my CGI's problem.
>> Am I missing anything?
>>
>
> What sort of problems are you running into? How is it not taking your
> SLD?
>
> ..Tom
>
>
>>
>> I appreciate any help! Thanks.
>>
>
More information about the MapServer-users
mailing list