I have an SLD that uses the gs:Contour function in a Transformation element. When I make a tiled request there are gaps in the contour lines at the tile boundaries (see attached screen shot). I can minimize the problem by added the *buffer *WMS parameter but this only helps with lower zoom levels. When I zoom in on the map the gaps come back because they are now bigger than the buffer size. Is there a way to deal with the buffer size based on the zoom level?

Also the documentation mentions automatically computing the buffer value based on the style. This doesn't seem to be happening and my SLD is not using feature attribute values for sizes and does not have external graphics. Could this be because this logic does not work when the Transformation is involved?

I am using a 2.2-SNAPSHOT and the SLD is attached.

Thanks,

Michael Romero
Forward Slope Inc.

<<attachment: Screenshot at 2012-07-11 16:38:06.png>>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<sld:StyledLayerDescriptor xmlns:ogc="http://www.opengis.net/ogc"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:sld="http://www.opengis.net/sld"; xmlns:gml="http://www.opengis.net/gml"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd">
    <sld:UserLayer>
        <sld:Name>gis_pres</sld:Name>
        <sld:LayerFeatureConstraints>
            <sld:FeatureTypeConstraint/>
        </sld:LayerFeatureConstraints>
        <sld:UserStyle>
            <sld:Title>Pressure [mBar]</sld:Title>
            <sld:Abstract>Atmospheric pressure in millibars.</sld:Abstract>
            <sld:FeatureTypeStyle>
                <sld:FeatureTypeName>Feature</sld:FeatureTypeName>
                <sld:Transformation>
                    <ogc:Function name="gs:Contour">
                        <ogc:Function name="parameter">
                            <ogc:Literal>data</ogc:Literal>
                        </ogc:Function>
                        <ogc:Function name="parameter">
                            <ogc:Literal>band</ogc:Literal>
                            <ogc:Literal>0</ogc:Literal>
                        </ogc:Function>
                        <ogc:Function name="parameter">
                            <ogc:Literal>levels</ogc:Literal>
                            <ogc:Literal>80000.0</ogc:Literal>
                            <ogc:Literal>80400.0</ogc:Literal>
                                            .
                                            .
                                            .
                            <ogc:Literal>107600.0</ogc:Literal>
                            <ogc:Literal>108500.0</ogc:Literal>
                        </ogc:Function>
                    </ogc:Function>
                </sld:Transformation>
                <sld:Rule>
                    <sld:Name>contour-lines</sld:Name>
                    <sld:Title>Contour lines with labels</sld:Title>
                    <sld:LineSymbolizer>
                        <sld:Stroke>
                            <sld:CssParameter name="stroke">#DEDEDE</sld:CssParameter>
                            <sld:CssParameter name="stroke-width">1.0</sld:CssParameter>
                        </sld:Stroke>
                    </sld:LineSymbolizer>
                    <sld:TextSymbolizer>
                        <sld:Label>
                            <ogc:Function name="numberFormat">
                                <ogc:Function name="Categorize">
                                    <ogc:PropertyName>value</ogc:PropertyName>
                                    <ogc:Literal>0.##</ogc:Literal>
                                    <ogc:Literal>-1</ogc:Literal>
                                    <ogc:Literal>0.##E0</ogc:Literal>
                                    <ogc:Literal>1</ogc:Literal>
                                    <ogc:Literal>0.##</ogc:Literal>
                                </ogc:Function>
                                <ogc:Div>
                                    <ogc:PropertyName>value</ogc:PropertyName>
                                    <ogc:Literal>100</ogc:Literal>
                                </ogc:Div>
                            </ogc:Function>
                        </sld:Label>
                        <sld:Font>
                            <sld:CssParameter name="font-family">SansSerif</sld:CssParameter>
                            <sld:CssParameter name="font-style">Normal</sld:CssParameter>
                            <sld:CssParameter name="font-size">10</sld:CssParameter>
                            <sld:CssParameter name="font-weight">bold</sld:CssParameter>
                        </sld:Font>
                        <sld:LabelPlacement>
                            <sld:LinePlacement/>
                        </sld:LabelPlacement>
                        <sld:Halo>
                            <sld:Radius>2</sld:Radius>
                            <sld:Fill>
                                <sld:CssParameter name="fill">#FFFFFF</sld:CssParameter>
                                <sld:CssParameter name="fill-opacity">.75</sld:CssParameter>
                            </sld:Fill>
                        </sld:Halo>
                        <sld:Fill>
                            <sld:CssParameter name="fill">#000000</sld:CssParameter>
                            <sld:CssParameter name="fill-opacity">1</sld:CssParameter>
                        </sld:Fill>
                        <sld:VendorOption name="followLine">true</sld:VendorOption>
                        <sld:VendorOption name="group">true</sld:VendorOption>
                    </sld:TextSymbolizer>
                </sld:Rule>
            </sld:FeatureTypeStyle>
        </sld:UserStyle>
    </sld:UserLayer>
</sld:StyledLayerDescriptor>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to