[OpenLayers-Users] ArcIMS thematic mapping example on Mapserver

bartvde at osgis.nl bartvde at osgis.nl
Fri Apr 9 01:46:09 EDT 2010


Hi,

what you want is possible with SLD, but you need to read about it a bit more.

Check out for instance this stuff from the FOSS4G 2009 conference in Sydney:

http://download.osgeo.org/osgeo/foss4g/2009/SPREP/1Wed/Parkside%20GO3/1300/

Best regards,
Bart

>
> Hi Bart van den,
>
> Thanks for your reply.
> I went thru' the code of the link you have given.
>
> It is like this:
>
>  var sld = '<StyledLayerDescriptor version="1.0.0">';
>                 sld+= '<NamedLayer>';
>                 sld+= '<Name>topp:tasmania_roads</Name>';
>                 sld+= '<UserStyle>';
>                 sld+= '<IsDefault>1</IsDefault>';
>                 sld+= '<FeatureTypeStyle>';
>                 sld+= '<Rule>';
>                 sld+= '<LineSymbolizer>';
>                 sld+= '<Stroke>';
>                 sld+= '<CssParameter name="stroke">';
>                 sld+= '<Literal>#787878</Literal>';
>                 sld+= '</CssParameter>';
>                 sld+= '<CssParameter name="stroke-width">';
>                 sld+= '<Literal>2</Literal>';
>                 sld+= '</CssParameter>';
>                 sld+= '</Stroke>';
>                 sld+= '</LineSymbolizer>';
>                 sld+= '</Rule>';
>                 sld+= '</FeatureTypeStyle>';
>                 sld+= '</UserStyle>';
>
> Now in this case I see that there is a <NamedLayer> which is a layer and
> the
> styles corresponding to it.
> But my case case is different.
>
> I have a single layer and within that there are different features.How can
> I
> be able to access the different features within a single layer i.e not
> different layers as shown in this example.
> Once I am able to access the different features within a WMS layer I can
> apply different styles to each of them.
>
> It seems that I need to maintain a stylesheet corresponding to
> </FeatureTypeStyle>';
> What is </LineSymbolizer>,</Rule>?
> Are these styles mentioned in stylesheet?
> Pls send a sample stylesheet which works with SLD.
> Is there an example of what I am looking for?
>
> Thanks.
> --
> View this message in context:
> http://n2.nabble.com/ArcIMS-thematic-mapping-example-on-Mapserver-tp4871120p4875293.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list