Oh I see, that most of the content will be not shown in email version.

So I will repost in hope anyone has an idea what's wrong in my 
configuration.

Hi,

I tried to use the Transformation-Tag in Geoservers SLD. The process 
with Processbuilder work fine with this configuration:

<?xml version="1.0" encoding="UTF-8"?>
<wps:Execute version="1.0.0" service="WPS" ... /wpsAll.xsd">
   <ows:Identifier>gt:VectorToRaster</ows:Identifier>
   <wps:DataInputs>
     <wps:Input>
       <ows:Identifier>features</ows:Identifier>
       <wps:Reference mimeType="text/xml; subtype=wfs-collection/1.0" 
xlink:href="http://geoserver/wfs"; method="POST">
         <wps:Body>
           <wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2">
             <wfs:Query typeName="sde:Kundenumsaetze"/>
           </wfs:GetFeature>
         </wps:Body>
       </wps:Reference>
     </wps:Input>
     <wps:Input>
       <ows:Identifier>attribute</ows:Identifier>
       <wps:Data>
         <wps:LiteralData>Umsatz</wps:LiteralData>
       </wps:Data>
     </wps:Input>
     <wps:Input>
       <ows:Identifier>rasterWidth</ows:Identifier>
       <wps:Data>
         <wps:LiteralData>1000</wps:LiteralData>
       </wps:Data>
     </wps:Input>
     <wps:Input>
       <ows:Identifier>rasterHeight</ows:Identifier>
       <wps:Data>
         <wps:LiteralData>1000</wps:LiteralData>
       </wps:Data>
     </wps:Input>
   </wps:DataInputs>
   <wps:ResponseForm>
     <wps:RawDataOutput mimeType="image/tiff">
       <ows:Identifier>result</ows:Identifier>
     </wps:RawDataOutput>
   </wps:ResponseForm>
</wps:Execute>


Now I tried to use the process in my own SLD-Definition shown below:

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" ...>
   <!-- a Named Layer is the basic building block of an SLD document -->
   <NamedLayer>
     <Name>Kundenumsaetze</Name>
     <UserStyle>
     <!-- Styles can have names, titles and abstracts -->
       <Title>Default Raster</Title>
       <Abstract>A sample style that draws a raster, good for displaying 
imagery</Abstract>
       <!-- FeatureTypeStyles describe how to render different features -->
       <!-- A FeatureTypeStyle for rendering rasters -->
       <FeatureTypeStyle>
         <Transformation>
           <ogc:Function name="gt:VectorToRaster">
             <ogc:Function name="parameter">
               <ogc:Literal>features</ogc:Literal>
             </ogc:Function>
             <ogc:Function name="parameter">
               <ogc:Literal>attribute</ogc:Literal>
               <ogc:Literal>Umsatz</ogc:Literal>
             </ogc:Function>
             <ogc:Function name="parameter">
               <ogc:Literal>rasterWidth</ogc:Literal>
               <ogc:Literal>1000</ogc:Literal>
             </ogc:Function>
             <ogc:Function name="parameter">
               <ogc:Literal>rasterHeight</ogc:Literal>
               <ogc:Literal>1000</ogc:Literal>
             </ogc:Function>
           </ogc:Function>
         </Transformation>
         <Rule>
           <Name>rule1</Name>
           <Title>Opaque Raster</Title>
           <Abstract>A raster with 100% opacity</Abstract>
           <RasterSymbolizer>
             <Opacity>1.0</Opacity>
           </RasterSymbolizer>
         </Rule>
       </FeatureTypeStyle>
     </UserStyle>
   </NamedLayer>
</StyledLayerDescriptor>


When I checked the layer with Openlayers-Demo in Layer-Preview I got 
this Exceptionmessage:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE 
ServiceExceptionReport ...>  <ServiceExceptionReport version="1.1.1">    
<ServiceException>
       The requested Style can not be used with this layer.  The style 
specifies an attribute of geom and the layer is: sde:Kundenumsaetze
</ServiceException></ServiceExceptionReport>


Has anyone an idea what's the problem of my SLD?
Testing it with 2.1.3 and nightly trunk build.

Thanks in advance.

Regards
Nikolai

-- 
------------------------------------------------------------------
Dipl.-Ing. (FH) Nikolai Bock, M.Eng.
i3mainz - Institut für Raumbezogene Informations- und Messtechnik
Fachhochschule Mainz - University of Applied Sciences

Lucy-Hillebrand-Straße 2
55128 Mainz, Germany

Tel:    +49(0)6131 628-1452
Fax:    +49(0)6131 628-91452

[email protected]
http://www.i3mainz.fh-mainz.de
------------------------------------------------------------------


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to