[Geoserver-users] Use of MultiplyCoverages in a SLD

Hey,
I'm trying to implement a rendering trasformation by using the
gs:MultiplyCoverages function in a SLD. How can I define the coverageA and B
sources? My code is:

<Transformation>
  <ogc:Function name="gs:MultiplyCoverages">
    <ogc:Function name="parameter">
      <ogc:Literal>coverageA</ogc:Literal>
       ...?...
    </ogc:Function>
    <ogc:Function name="parameter">
      <ogc:Literal>coverageB</ogc:Literal>
        ...?...
    </ogc:Function>
  </ogc:Function>
</Transformation>

The error I get is:
Could not convert the value {coverageA=myworkspace:myhillshade} into the
expected type class org.geotools.coverage.grid.GridCoverage2D for parameter
coverageA

Is there any documentation on how to implement this function?
Thank you so much!
Bye

Paolo

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Use-of-MultiplyCoverages-in-a-SLD-tp5025990.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Mon, Jan 7, 2013 at 4:55 PM, Paolo Pasquali <paolo.pasquali@anonymised.com…> wrote:

Is there any documentation on how to implement this function?

There is no way to support the function you want right now, a rendering transformation
can only work against the data coming from the layer you’re transforming, you
cannot do that with two layers.

That said, it is possible to think about adding new code, new features to the
transformation functionality allowing it to work against two layers at the same time…
but it’s going to take time, it’s not a quick hack, but the work of several days,
so it needs funding.

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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