> Can you post your wmc here?
Yes, thanks in advance.
Here is a fragment of my default model
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<ViewContext version="1.0.0" id="atlas_world" ...>
<General>
...
</General>
<LayerList>
<!-- layer 1 -->
<Layer queryable="1" hidden="0">
....
</Layer>
<!-- layer N... here i have to send my SLD -->
<Layer queryable="1" hidden="0">
<Server service="OGC:WMS" version="1.1.1" title="Percorsi Definiti">
<OnlineResource xlink:type="simple" xlink:href="../wms"/>
</Server>
<Name>topp:def_percorso</Name>
<Title>Percorsi Definiti</Title>
<SRS>EPSG:4326</SRS>
<FormatList><Format current="1">image/png</Format></FormatList>
<StyleList>
<style current="1">
<SLD>
<OnLineResource xlink:type="simple"
xlink:href="http://geo.com:8080/SLD/my_sld.sld"/>
</SLD>
</style>
</StyleList>
</Layer>
<!-- layer k -->
<Layer queryable="1" hidden="0">
....
</Layer>
</LayerList>
</ViewContext>
and this is the last version of my_sld.sld (i made a lot of tries).
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld
StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- a named layer is the basic building block of an sld
document -->
<NamedLayer>
<Name>topp:def_percorso</Name>
<UserStyle>
<Title>Default style</Title>
<Abstract>A sample style that just prints out a green
line</Abstract>
<FeatureTypeStyle>
<Rule>
<Name>Rule 1</Name>
<Title>Green Line</Title>
<Abstract>A green line with a 2 pixel width</Abstract>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>descrizione</ogc:PropertyName>
<ogc:Literal>strada2</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<LineSymbolizer>
<Stroke>
<CssParameter
name="stroke">#319738</CssParameter>
<CssParameter
name="stroke-width">2</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
--
View this message in context:
http://www.nabble.com/Geosever-use-just-default-SLD%2C-not-my-SLD-in-mapbuilder-tf3994560.html#a11691071
Sent from the MapBuilder Users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users