Hi PIerre,
question, are you reprojecting the raster data in the process?
In other words, is your request coordinate reference system different than
the data one?

We have had reports that something is not working in those cases, and the
output remains
blank, but haven't had time to look into it so far.

Cheers
Andrea

On Fri, May 29, 2015 at 1:28 PM, VILLARD, Pierre <
[email protected]> wrote:

> 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
>



-- 
==
Meet us at the INSPIRE Conference in Lisbon 25-29 May 2015! Visit
http://goo.gl/WHKDXT for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to