[OpenLayers-Users] ArcIMS thematic mapping example on Mapserver
sunny74
sb.ray at hotmail.com
Fri Apr 9 00:18:45 EDT 2010
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.
More information about the Users
mailing list