Re: [Geoserver-users] raster symbolizer wms using dynamic SLD
Hi there, for the benefit of the list.. it is indeed possible, but you need to pay attention to the NamedLayer, unlike for a normal sld its name must match your layer name (I recall this now from years ago as a way of defining which layer in your request this sld applies to) so the sld is: StyledLayerDescriptor version=1.0.0 NamedLayer NameACTUAL_LAYER_NAME_HERE/Name UserStyle FeatureTypeStyle Rule Namerule1/Name RasterSymbolizer ChannelSelection RedChannel SourceChannelName1/SourceChannelName /RedChannel GreenChannel SourceChannelName1/SourceChannelName /GreenChannel BlueChannel SourceChannelName3/SourceChannelName /BlueChannel /ChannelSelection /RasterSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor with contrast enhancement: StyledLayerDescriptor version=1.0.0 NamedLayer NameACTUAL_LAYER_NAME_HERE/Name UserStyle FeatureTypeStyle Rule Namerule1/Name RasterSymbolizer ChannelSelection RedChannel SourceChannelName1/SourceChannelName ContrastEnhancement Histogram / GammaValue1/GammaValue /ContrastEnhancement /RedChannel GreenChannel SourceChannelName1/SourceChannelName ContrastEnhancement Histogram / GammaValue1/GammaValue /ContrastEnhancement /GreenChannel BlueChannel SourceChannelName3/SourceChannelName ContrastEnhancement Histogram / GammaValue1/GammaValue /ContrastEnhancement /BlueChannel /ChannelSelection /RasterSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor De : Ivan Price [mailto:ivan.pr...@noveltis.fr] Envoyé : lundi 2 avril 2012 17:03 À : geoserver-users@lists.sourceforge.net Objet : [Geoserver-users] raster symbolizer wms using dynamic SLD Hi there, I have an SLD for choosing 3 bands of a multi band image and allocating them to particular R,G,B channels as per the doc (sld is included below). This works excellently when the SLD is pre-defined in the geoserver config (using style=) however I would like to define which bands are to be r,g,b (i.e. the 'SourceChannelName') at the time of the request. I have seen on this list that that using the 'env' parameter is not possible, but it seems that using the SLD=url and SLD_BODY=xml params are also not possible, as geoserver seems to ignore their content for raster data (unless it is malformed in which case it throws an error). Does anybody know if I am doing something wrong ? thanks and cheers, -ivan ?xml version=1.0 encoding=ISO-8859-1? StyledLayerDescriptor version=1.0.0 xsi:schemaLocation=http://www.opengis.net/sld StyledLayerDescriptor.xsdhttp://www.opengis.net/sld%20StyledLayerDescriptor.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 Namergb_raster/Name UserStyle Titlergb Raster/Title FeatureTypeStyle Rule Namerule1/Name TitleOpaque Raster/Title AbstractA raster with 100% opacity/Abstract RasterSymbolizer ChannelSelection RedChannel SourceChannelName1/SourceChannelName /RedChannel GreenChannel SourceChannelName2/SourceChannelName /GreenChannel BlueChannel SourceChannelName3/SourceChannelName /BlueChannel /ChannelSelection /RasterSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] NamedLayer or not NamedLayer?
Just a quick follow-up to the last post raster symbolizer wms using dynamic SLD What is the purpose of the namedlayer attribute in an eld file? If the layers are manually assigned to the data in geoserver why do we need to use NamedLayer at all? What happens when I just leave out the NamedLayer part...can it then be assigned to any layer? cheers, Rob-- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Quick easy? Question
Bah, I should know this since I have used this teqnique for the styling :) Works great, thanks! charles On Apr 2, 2012, at 12:00 PM, David Winslow wrote: This should do it: * { stroke-geometry: [first_line], [second_line]; stroke: red, blue; stroke-width: 3, 2; } In general this is how to stack symbolizers in CSS. Don't forget a repeated z-index property if you need to control render order. -- David Winslow OpenGeo - http://opengeo.org/ On Mon, Apr 2, 2012 at 11:50 AM, Charles Galpin cgal...@lhsw.com wrote: My use case might be different, but here is what I want to do (i just revisited this and still can't figure it out). I have more than one geometry per row (lets say 2 linestrings) and want to visualize them both and differently. If the answer is to return a row for each one with a different attribute to filter on, that's fine. -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] NamedLayer or not NamedLayer?
On Tue, Apr 3, 2012 at 11:35 AM, Robert Buckley robertdbuck...@yahoo.com wrote: Just a quick follow-up to the last post raster symbolizer wms using dynamic SLD What is the purpose of the namedlayer attribute in an eld file? If the layers are manually assigned to the data in geoserver why do we need to use NamedLayer at all? What happens when I just leave out the NamedLayer part...can it then be assigned to any layer? NamedLayer is only relevant if you are posting the full SLD along the request (client provided style, that is), when configuring a style server side that part is ignored anyways, only the UserStyle is taken into consideration Cheers Andrea -- --- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 339 8844549 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf --- -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] (no subject)
a href=http://whatsdrivingyoucrazy.com/blog.old/wp-content/plugins/extended-comment-options/jrklre.html; http://whatsdrivingyoucrazy.com/blog.old/wp-content/plugins/extended-comment-options/jrklre.html/a-- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users