Went over the docs at http://docs.geoserver.org/stable/en/user/styling/sld-extensions/rendering-transform.html
As stated: "Most rendering transformations take as input a dataset to be transformed. This is supplied via a special named parameter which does not have a value specified. The name of the parameter is determined by the particular transformation being used. When the transformation is executed, the input dataset is passed to it via this parameter." I was under impression that the reference to a "special named parameter which does not have a value specified" would mean simply a parameter w/o a value. It appears that the parameter must be named "data" (this is with GeoServer 2.2). This rendering transformation feature allows from some pretty amazing things. Thanks to those that requested and implemented this feature... Tom On Sep 26, 2012, at 3:48 AM, Tom Kunicki <tkuni...@usgs.gov> wrote: > > Hi, > > I've created a vector-to-raster rendering transformation. I have the SLD > stored in GeoServer as a style and have added it as an available style to a > layer backed by a Shapefile datastore. How do I signify to the SLD to pass > in the feature collection from the datastore backing the layer as the feature > collection bound to the "flowline_features" input? I would prefer this > method (no SLD parameters on the WMS call) so that I can generate WMS output > that can be cached using the WMS-integrated GeoWebCache as the rendering may > be expensive. When I make calls to the layer with the style an empty feature > collection is passed (not null, but a FeatureColletion without any Features). > > The WPS process accepts a SimpleFeatureCollection as the ComplexData Input > named "flowline_features". SLD below... > > <?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"> > <NamedLayer> > <Name>rt</Name> > <UserStyle> > <Title>rt</Title> > <Abstract>rt</Abstract> > <FeatureTypeStyle> > <Transformation> > <ogc:Function name="gs:FlowlineRaster"> > <ogc:Function name="parameter"> > <ogc:Literal>flowline_features</ogc:Literal> > </ogc:Function> > <ogc:Function name="parameter"> > <ogc:Literal>class_name</ogc:Literal> > <ogc:Literal>StreamOrde</ogc:Literal> > </ogc:Function> > <ogc:Function name="parameter"> > <ogc:Literal>outputBBOX</ogc:Literal> > <ogc:Function name="env"> > <ogc:Literal>wms_bbox</ogc:Literal> > </ogc:Function> > </ogc:Function> > <ogc:Function name="parameter"> > <ogc:Literal>outputWidth</ogc:Literal> > <ogc:Function name="env"> > <ogc:Literal>wms_width</ogc:Literal> > </ogc:Function> > </ogc:Function> > <ogc:Function name="parameter"> > <ogc:Literal>outputHeight</ogc:Literal> > <ogc:Function name="env"> > <ogc:Literal>wms_height</ogc:Literal> > </ogc:Function> > </ogc:Function> > </ogc:Function> > </Transformation> > <Rule> > <RasterSymbolizer> > <!-- specify geometry attribute to pass validation --> > > <Geometry><ogc:PropertyName>the_geom</ogc:PropertyName></Geometry> > <Opacity>1</Opacity> > <ChannelSelection> > <RedChannel> > <SourceChannelName>1</SourceChannelName> > </RedChannel> > <GreenChannel> > <SourceChannelName>1</SourceChannelName> > </GreenChannel> > <BlueChannel> > <SourceChannelName>1</SourceChannelName> > </BlueChannel> > </ChannelSelection> > </RasterSymbolizer> > </Rule> > </FeatureTypeStyle> > </UserStyle> > </NamedLayer> > </StyledLayerDescriptor> > > Thanks much, > > Tom Kunicki > Center for Integrated Data Analytics > U.S. Geological Survey > 8505 Research Way > Middleton, WI 53562 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Geoserver-users mailing list > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users Tom Kunicki Center for Integrated Data Analytics U.S. Geological Survey 8505 Research Way Middleton, WI 53562 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users