Hello, I am not sure if I should use this mailing list to ask this question... correct me if I am wrong.
I have a geoTiff file containing U and V wind components in two separate bands and I am trying to display it on geoserver with arrows. I am on geoserver 2.6.2 and I am following the indications here : http://geoserver.geo-solutions.it/edu/fr/wps/rendering_tx.html I have added the following style : <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld ./StyledLayerDescriptor.xsd"> <NamedLayer> <Name>contour_lines</Name> <UserStyle> <FeatureTypeStyle> <Transformation> <ogc:Function name="gs:RasterAsPointCollection"> <ogc:Function name="parameter"> <ogc:Literal>data</ogc:Literal> </ogc:Function> </ogc:Function> </Transformation> <Rule> <TextSymbolizer> <Label><![CDATA[ ]]></Label> <!-- fake label --> <Graphic> <Mark> <WellKnownName>shape://carrow</WellKnownName> <Fill> <CssParameter name="fill">#000000</CssParameter> </Fill> </Mark> <Size> <ogc:Mul> <ogc:Function name="sqrt"> <ogc:Add> <ogc:Mul> <ogc:PropertyName>Band1</ogc:PropertyName> <ogc:PropertyName>Band1</ogc:PropertyName> </ogc:Mul> <ogc:Mul> <ogc:PropertyName>Band2</ogc:PropertyName> <ogc:PropertyName>Band2</ogc:PropertyName> </ogc:Mul> </ogc:Add> </ogc:Function> <ogc:Literal>200</ogc:Literal> </ogc:Mul> </Size> <Rotation> <ogc:Function name="toDegrees"> <ogc:Function name="atan2"> <ogc:PropertyName>Band2</ogc:PropertyName> <ogc:PropertyName>Band1</ogc:PropertyName> </ogc:Function> </ogc:Function> </Rotation> </Graphic> <Priority> <ogc:Add> <ogc:Mul> <ogc:PropertyName>Band1</ogc:PropertyName> <ogc:PropertyName>Band1</ogc:PropertyName> </ogc:Mul> <ogc:Mul> <ogc:PropertyName>Band2</ogc:PropertyName> <ogc:PropertyName>Band2</ogc:PropertyName> </ogc:Mul> </ogc:Add> </Priority> </TextSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> And when I added my layer, I renamed the two bands in Band1 and Band2 and selected the style. But when previewing the layer, it stays desperately blank without any error message. Do you have any idea where I should look for to solve this issue ? Thanks ! Pierre. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
