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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users