Hi,
Geoserver is ignoring the srsName parameter of a box in a filter used for
styling in SLD in a WMS layer.
Whatever value I choose, it always uses the layer's srid.
This is the scenario:
- A geoserver WMS layer with a custom srid, for example 15146542
- OpenLayers consuming WMS services using srid 900913
- A generared sld used to select polygons which intersect a box. Here it
is:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sldStyledLayerDescriptor.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">
<NamedLayer>
<Name>gras:ciudades_gauss</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<ogc:Filter>
<ogc:Intersects xmlns:gml="
http://www.opengis.net/gml">
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box srsName="
http://www.opengis.net/gml/srs/epsg.xml#900913">
<gml:coordinates decimal="." cs="," ts="
">-6250571.9605118,-4147566.3343955
-6249981.75481,-4146976.1286937</gml:coordinates>
</gml:Box>
</ogc:Intersects>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#FF0000</CssParameter>
<CssParameter
name="stroke">#FF0000</CssParameter>
<CssParameter
name="fill-opacity">0.5</CssParameter>
</Fill>
</PolygonSymbolizer>
</Rule>
<Rule>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#EEA456</CssParameter>
<CssParameter
name="fill-opacity">0.5</CssParameter>
</Fill>
<Stroke>
<CssParameter
name="stroke">#465DFF</CssParameter>
<CssParameter
name="stroke-width">2</CssParameter>
<CssParameter
name="stroke-opacity">0.5</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Any ideas?
Thanks.
------------------------------------------------------------------------------
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