hey it works now 
 
Thanks a million Miles for you support :)

  Regrads,


Marwa Elsaid


 

> From: [email protected]
> To: [email protected]
> Date: Wed, 15 Dec 2010 10:16:12 +1100
> Subject: RE: [Geoserver-users] how to change sld dynamically from wms request 
> [SEC=Unclassified] url ? [SEC=Unclassified]
> 
> Marwa,
> 
> First, you can't use the STYLES parameter with the SLD parameter. Actually I 
> thought that threw an exception. Remove "styles=&" from your request and try 
> again. i.e.
> 
> Second, it looks like you are using SLD= to reference a style that is already 
> registered within Geoserver. You should only use the SLD parameter to 
> reference external SLDs. If your style is already registered with Geoserver 
> you just need to use the STYLES parameter, i.e. styles=mystyle and omit the 
> SLD parameter, such as
> 
> http://localhost:8082/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=geoConnect:green_area_islands&styles=mystyle&bbox=31.195,30.047,31.21,30.057&width=512&height=341&srs=EPSG:4326&format=application/openlayers
> 
> Regards,
> 
> Miles Jordan, Systems Analyst
> Australian Antarctic Data Centre | Australian Antarctic Division
> Dept. for Sustainability, Environment, Water, Population and Communities
> http://data.aad.gov.au
> 
> 
> 
> marwa El-said wrote:
> > 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/op
> > enlayers
> >
> > 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://localho
> > st: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
> 
> 
> 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

Reply via email to