I have GeoServer with raster (GeoTIFF) of the temperature parameter. Using SLD styles and bicubic interpolation I get nice map and now I'm trying to create a style that show the isolines.
The isoline are displayed but the result is not what I expect. In fact while zooming in the lines become "straight"
My current SLD is:
<?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>Temperature Isoline</Name>
<UserStyle>
<!-- Styles can have names, titles and abstracts -->
<Title>Default Line</Title>
<!-- FeatureTypeStyles describe how to render different features -->
<!-- A FeatureTypeStyle for rendering lines -->
<FeatureTypeStyle>
<Transformation>
<ogc:Function name="gs:Contour">
<ogc:Function name="parameter">
<ogc:Literal>data</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>levels</ogc:Literal>
<ogc:Literal>-50</ogc:Literal>
<ogc:Literal>-45</ogc:Literal>
<ogc:Literal>-30</ogc:Literal>
<ogc:Literal>-25</ogc:Literal>
<ogc:Literal>-20</ogc:Literal>
<ogc:Literal>-15</ogc:Literal>
<ogc:Literal>-10</ogc:Literal>
<ogc:Literal>-5</ogc:Literal>
<ogc:Literal>0</ogc:Literal>
<ogc:Literal>5</ogc:Literal>
<ogc:Literal>10</ogc:Literal>
<ogc:Literal>15</ogc:Literal>
<ogc:Literal>20</ogc:Literal>
<ogc:Literal>25</ogc:Literal>
<ogc:Literal>30</ogc:Literal>
<ogc:Literal>35</ogc:Literal>
<ogc:Literal>40</ogc:Literal>
<ogc:Literal>45</ogc:Literal>
<ogc:Literal>50</ogc:Literal>
<ogc:Literal>60</ogc:Literal>
<ogc:Literal>70</ogc:Literal>
<ogc:Literal>80</ogc:Literal>
<ogc:Literal>90</ogc:Literal>
<ogc:Literal>100</ogc:Literal>
</ogc:Function>
</ogc:Function>
</Transformation>
<Rule>
<Name>rule1</Name>
<Title>Blue Line</Title>
<Abstract>A solid blue line with a 1 pixel width</Abstract>
<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">#0000FF</CssParameter>
<CssParameter name="stroke-linejoin">round</CssParameter>
<CssParameter name="stroke-linecap">round</CssParameter>
</Stroke>
</LineSymbolizer>
<TextSymbolizer>
<Label>
<ogc:PropertyName>value</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-style">Normal</CssParameter>
<CssParameter name="font-size">10</CssParameter>
</Font>
<LabelPlacement>
<LinePlacement>
</LinePlacement>
</LabelPlacement>
<Halo>
<Radius>
<ogc:Literal>2</ogc:Literal>
</Radius>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
<CssParameter name="fill-opacity">0.85</CssParameter>
</Fill>
</Halo>
<Fill>
<CssParameter name="fill">#000000</CssParameter>
</Fill>
<VendorOption name="followLine">true</VendorOption>
<VendorOption name="repeat">200</VendorOption>
<VendorOption name="maxDisplacement">50</VendorOption>
<VendorOption name="maxAngleDelta">30</VendorOption>
<VendorOption name="group">no</VendorOption>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
What can I do?