Hello, 
 
I'm using MapServer WMS and want to apply some complex SLD to an OL WMS layer. 
It seems that some features cannot be used in OL, for example putting the text 
label in the centroid of the polygon or fill-opacity (I can't make this work, 
even with mapserver). I've been looking to your web page and I've realized that 
you have a slider bar which lets you set some transparency to the style. How do 
you do that, if I can ask??
 
Thanks.
 

 

 

Un saludo,

 

··················································································


David Alda Fernández de Lezea

Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad

 

IKT

Granja Modelo s/n · 01192 · Arkaute (Araba)


··················································································
Tlfnos.: 945-00-32-95                         Fax: 945-00.32.90
··················································································
email: da...@ikt.es                                web: www.ikt.es 
<http://www.ikt.es/> 
··················································································

 

________________________________

De: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] En 
nombre de Brad Spencer
Enviado el: lunes, 16 de noviembre de 2009 22:24
Para: 'Pedro Baracho'; 'Ian Turton'
CC: 'OpenLayers Users'
Asunto: Re: [OpenLayers-Users] SLD on the fly



Pedro,

 

I use CubeWerx WMS. This allows you to apply SLDs externally with no effect on 
STYLES but you can also undertake a PutStyles if you have that access privilege 
which will add/update the STYLE. 

 

I build a library of SLDs if I want to keep them as permanent filters which is 
important in my case as I am producing an infinite number of thematic maps 
(DemographicDrapes) from Census statistics.

 

Have a look at http://demos.numaps.com.au/demographicdrapes.html

 

I have built a complex Style Builder application that allows the user to pretty 
much change all aspects of a SLD and Save or SaveAs.

 

Cheers, Brad.... 

 

From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] On 
Behalf Of Pedro Baracho
Sent: Tuesday, November 17, 2009 7:36 AM
To: Ian Turton
Cc: OpenLayers Users
Subject: Re: [OpenLayers-Users] SLD on the fly

 

Wow, I am impressed! What a cool map that is being displayed on my screen! hehe 
:)

Thanks for the reply.

Guess I am set in solution 2.

Just another question. I don't see SLD BODY on WMS Spec, but I see it on SLD 
profile for WMS. And it also states:
"GetMap is defined in WMS 1.3. The SLD profile for WMS defines additional 
parameters allowing clients to request layers to be portrayed according to some 
specified style."

Do you know any map server that doesn't support SLD profile for WMS, but 
supports WMS? I am just curious about it, because imho it doesn't make sense 
splitting SLD profile for WMS from WMS spec.

On Mon, Nov 16, 2009 at 5:54 PM, Ian Turton <ijtur...@gmail.com> wrote:

On Mon, Nov 16, 2009 at 2:29 PM, Pedro Baracho <pedropbara...@gmail.com> wrote:
> I need to change SLD on the fly to create some thematic maps. I would also
> appreciate if compatibility with OGC's WFS was mantained. Have you guys done
> this before? I could use some suggestions... :P
>
> I have done some searching and came up with a couple of solutions.
>
> 1- GeoServer GeoExt Styler Plugin.
> I don't know if it is a good solution, because as far as I know, it changes
> the style of the layer for all the users. I would need to replicate styles
> on the server for each user and each layer. And also this requires the
> server to be Geoserver, and breaks OGC compatibility.
>

You are right that will change it for everyone


> 2- WMS 1.3 and SLD
> MapServer implements WMS 1.3 and accepts a SLD description in the request.
> GeoServer doesn't.
> Nothing against MapServer, but my current development environment is set
> with GeoServer..

Try 
http://localhost:8080/geoserver/wms?bbox=-130,24,-66,50&Format=image/png&request=GetMap&width=550&height=250&srs=EPSG:4326&SLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CUserLayer%3E%3CName%3Etopp:states%3C/Name%3E%3CUserStyle%3E%3CName%3EUserSelection%3C/Name%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CFilter%20xmlns:gml%3D%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3ESTATE_NAME%3C/PropertyName%3E%3CLiteral%3EIllinois%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CCssParameter%20name%3D%22fill%22%3E%23FF0000%3C/CssParameter%3E%3C/Fill%3E%3C/PolygonSymbolizer%3E%3C/Rule%3E%3CRule%3E%3CLineSymbolizer%3E%3CStroke/%3E%3C/LineSymbolizer%3E%3C/Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/UserLayer%3E%3C/StyledLayerDescriptor%3E
(from the demo requests page in geoserver 1.7.5) - works for all WMS versions.

>
> 3- WFS and treat SLD exhibition on the client
> This is a double edged solution. The good thing about WFS is that I have
> many more possibilities of control over the map. I can use SelectFeature
> control, instead of hacking some code to implement it over WMS. But it also
> gives me many other options I don't need such as the vector data. I only
> need the images.

Not sure I understand your plan here but sounds like overkill - and
may kill off the browser if you have too much data.

Ian
--
Ian Turton

Sent from Houserville, Pennsylvania, United States

 

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to