hello all,
Thanks Miles for your reply
I wanna to tell that when I click on a button I want to change the sld file for
this layer and re draw it with the new sld style applied on my layer
but this is not happen
simple Scenario:
when I tried to preview a published layer on my geoServer with a default style
"SLD" file assigned it works great
http://localhost:8082/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=geoConnect:green_area_islands&styles=&bbox=31.195,30.047,31.21,30.057&width=512&height=341&srs=EPSG:4326&format=application/openlayers
but if i tried to add SLD parameter to the previous url
SLD=http://localhost:8082/geoserver/datadir/styles/mysld.sld
nothing gonna to be changed
http://localhost:8082/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=geoConnect:green_area_islands&styles=&SLD=http://localhost:8082/geoserver/datadir/styles/mysld.sld&bbox=31.195,30.047,31.21,30.057&width=512&height=341&srs=EPSG:4326&format=application/openlayers
i need to change the sld assigned for a layer from wms request url
how can i do that ?
Regards,
Marwa Elsaid
> From: [email protected]
> To: [email protected]; [email protected]
> Date: Tue, 14 Dec 2010 10:09:03 +1100
> Subject: RE: [Geoserver-users] how to change sld dynamically from wms request
> [SEC=Unclassified] url ? [SEC=Unclassified]
>
> marwa El-said wrote:
> > I need to know how can i change the sld file dynamically for a layer
> > published on geoServer2.0.2 from the url of previewing any layer,
> >
> > is this doable or not?
> >
> > as I tried to do that but geoServer response doesn't consider any
> > change in the SLD parameter in the url
>
> If I understand your problem right, you are trying to supply an external SLD
> with your request to change how a layer is represented on-the-fly, and can't
> get it working.
>
> You'll have to post your SLD, otherwise there is no way of us knowing what's
> going on. Did you validate it? If not you can do that with Geoserver, just
> pretend you are making a new style and hit 'Validate'.
>
> Also if you are using a NamedLayer then make sure that it has a Name that
> matches your Geoserver layer name. You don't need this for styles that you've
> added to Geoserver; only when you're using the SLD parameter to specify one.
>
> Regards,
>
> Miles
>
>
>
> ___________________________________________________________________________
>
> Australian Antarctic Division - Commonwealth of Australia
> IMPORTANT: This transmission is intended for the addressee only. If you are
> not the
> intended recipient, you are notified that use or dissemination of this
> communication is
> strictly prohibited by Commonwealth law. If you have received this
> transmission in error,
> please notify the sender immediately by e-mail or by telephoning +61 3 6232
> 3209 and
> DELETE the message.
> Visit our web site at http://www.antarctica.gov.au/
> ___________________________________________________________________________
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users