Javier de la Torre ha scritto:
Hi all,
I am trying Geoserver 1.7.0-alpha1. I have two problems when using SLDs with a very simple FeatureType.
When we say alpha, we really mean it 
If you need geoserver for production, or just don't want to pull hairs
for your experiments with it, try 1.6.3 instead.
In this request:
http://java.imastedev.com/geoserver/wms?SRS=EPSG%3A4326&WIDTH=800&HEIGHT=377&LAYERS=ba%3Agbif_density_stats&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=-77.34375,-35.9482421875,77.34375,36.9482421875&SLD=http://java.imastedev.com/geoserver/sld/densityLayer.sld
Two things happen that are strange to me:
1) In the default SLD document assigned to the FeatureType I have declared a Fill for the polygons using:
<Fill>
<CssParameter name="fill">#cc0000</CssParameter>
<CssParameter name="fill-opacity">0.7</CssParameter>
</Fill>
But the fill does not seem to take effect.
Yeah, that one has been fixed.
2) I am trying to assign dynamically an SLD with a URL. Geoserver request it, because if it is wrong it throws an error. The remote SLD is exactly the same as the one defined as default for the FeatureType apart that I have changed the color of the stroke. But this change also does not seem to take effect.
Same as above, it does not matter how you inputed it.
The SLD in the server looks like this:
------------
<?xml version="1.0" encoding="UTF-8"?> <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"> <NamedLayer> <Name>densityStatsLayer</Name> <UserStyle> <Title>Style to draw density layers based on number of occurrences in gbif_density_stats</Title> <Abstract>Nothing to say for the moment</Abstract> <FeatureTypeStyle> <!-- 1-9 --> <Rule> <Name>Rule 1</Name> <Title>RedFill RedOutline</Title> <Abstract>50% transparent red fill with a red outline 1 pixel in width</Abstract> <PolygonSymbolizer> <Fill> <CssParameter name="fill">#cc0000</CssParameter> <CssParameter name="fill-opacity">0.7</CssParameter> </Fill> <Stroke> <CssParameter name="stroke">#ff6600</CssParameter> <CssParameter name="stroke-width">1</CssParameter> </Stroke> </PolygonSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor>
---------
Any idea what is going wrong? Maybe Geoserver 1.7.0 lacks functionality? Should I go to the stable?
You should definitely go with stable unless you have a very good reason
to stay with 1.7.0-alpha. 1.7 as is is less stable and quite a bit slower than 1.6.3, so unless you need wfs xlink support or wcs 1.1.1
support, I see no reason for using it.
cheers
Andrea