[Geoserver-users] Can we change Raster dynamicly through "SLD_body"?

Hello dear everyone,
I think I didn’t express clearly last time.I know we can display a WCS picture via WMS.If it is a Vector data layer,I can use “sld_body” to change its display style.But when I use the same way in a WCS layer,it didn’t display correctly.Cannot we use “sld_body” to change the Raster dynamicly which renders the WCS?The code I make is as follows which return no result.Thank you very much!
Best Wishes for you!
Sincerely yours,
Yang
var mysld=‘<?xml version="1.0" encoding="UTF-8"?>’;
mysld+=‘’;
mysld+=‘’;
mysld+=’ gtopo‘;
mysld+=’ ‘;
mysld+=’ DEM_GTOPO‘;
mysld+=’ dem style‘;
mysld+=’ dem style‘;
mysld+=’ ‘;
mysld+=’ Feature‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ 1.0‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’ ‘;
mysld+=’‘;
mysld+=’‘;
mysld+=’‘;
mysld+=’‘;
mysld+=’';
//Then
wmsLayer.mergeNewParams({“SLD_BODY”:mysld});


150 万 人 同 时 在 玩 的 网 游,你 不 试 试 吗 ?

Hi,

What do you mean by saying that your image did not display correctly? Is it that it is not processed in a way you want, or does it not even appear like the original one? I think that WCS is mostly for raster data exchange and it is not intented to do much image processing despite image format and projection transformations. I don't know what OGC Web Processing Service can do, but the name sounds like it might be something for you.

-Jukka Rahkonen-

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net on behalf of yangzhaohui
Sent: Thu 21.6.2007 10:14
To: geoserver-users
Subject: [Geoserver-users] Can we change Raster dynamicly through "SLD_body"?

Hello dear everyone,
   I think I didn't express clearly last time.I know we can display a WCS picture via WMS.If it is a Vector data layer,I can use "sld_body" to change its display style.But when I use the same way in a WCS layer,it didn't display correctly.Cannot we use "sld_body" to change the Raster dynamicly which renders the WCS?The code I make is as follows which return no result.Thank you very much!Best Wishes for you!
                                                               Sincerely yours,
                                                                       Yang
var mysld='<?xml version="1.0" encoding="UTF-8"?>';
mysld+='<StyledLayerDescriptor xmlns="http://www.opengis.net/sld&quot; xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:xlink="http://www.w3.org/1999/xlink&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/sldhttp://schemas\.opengis\.net/sld/1\.0\.0/StyledLayerDescriptor\.xsd&quot; version="1.0.0">';
mysld+='<UserLayer>';
mysld+=' <Name>gtopo</Name>';
mysld+=' <UserStyle>';
mysld+=' <Name>DEM_GTOPO</Name>';
mysld+=' <Title>dem style</Title>';
mysld+=' <Abstract>dem style</Abstract>';
mysld+=' <FeatureTypeStyle>';
mysld+=' <FeatureTypeName>Feature</FeatureTypeName>';
mysld+=' <Rule>';
mysld+=' <RasterSymbolizer>';
mysld+=' <Opacity>1.0</Opacity>';
mysld+=' <ColorMap>';
mysld+=' <ColorMapEntry color="#000000" quantity="-500" label="nodata" opacity="0.0"/>';
mysld+=' <ColorMapEntry color="#003300" quantity="0" label="values"/>';
mysld+=' <ColorMapEntry color="#333300" quantity="20" label="values"/>';
mysld+=' <ColorMapEntry color="#CC9900" quantity="50" label="values"/>';
mysld+=' <ColorMapEntry color="#996600" quantity="100" label="values"/>';
mysld+=' <ColorMapEntry color="#996633" quantity="150" label="values"/>';
mysld+=' <ColorMapEntry color="#CC6600" quantity="300" label="values"/>';
mysld+=' <ColorMapEntry color="#993300" quantity="800" label="values"/>';
mysld+=' <ColorMapEntry color="#663300" quantity="1100" label="values"/>';
mysld+=' <ColorMapEntry color="#663333" quantity="1800" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="2500" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="3000" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="4000" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="6000" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="7000" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="8000" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="9000" label="values"/>';
mysld+=' </ColorMap>';
mysld+=' <OverlapBehavior>';
mysld+=' <AVERAGE/>';
mysld+=' </OverlapBehavior>';
mysld+=' <ShadedRelief/>';
mysld+=' </RasterSymbolizer>';
mysld+='</Rule>';
mysld+='</FeatureTypeStyle>';
mysld+='</UserStyle>';
mysld+='</UserLayer>';
mysld+='</StyledLayerDescriptor>';
//Then
  wmsLayer.mergeNewParams({"SLD_BODY":mysld});

He wants to assign colors based on numeric values found in the
coverage by using a style.

Alex

On 6/21/07, Rahkonen Jukka <Jukka.Rahkonen@anonymised.com> wrote:

Hi,

What do you mean by saying that your image did not display correctly? Is it that it is not processed in a way you want, or does it not even appear like the original one? I think that WCS is mostly for raster data exchange and it is not intented to do much image processing despite image format and projection transformations. I don't know what OGC Web Processing Service can do, but the name sounds like it might be something for you.

-Jukka Rahkonen-

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net on behalf of yangzhaohui
Sent: Thu 21.6.2007 10:14
To: geoserver-users
Subject: [Geoserver-users] Can we change Raster dynamicly through "SLD_body"?

Hello dear everyone,
   I think I didn't express clearly last time.I know we can display a WCS picture via WMS.If it is a Vector data layer,I can use "sld_body" to change its display style.But when I use the same way in a WCS layer,it didn't display correctly.Cannot we use "sld_body" to change the Raster dynamicly which renders the WCS?The code I make is as follows which return no result.Thank you very much!Best Wishes for you!
                                                               Sincerely yours,
                                                                       Yang
var mysld='<?xml version="1.0" encoding="UTF-8"?>';
mysld+='<StyledLayerDescriptor xmlns="http://www.opengis.net/sld&quot; xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:xlink="http://www.w3.org/1999/xlink&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/sldhttp://schemas\.opengis\.net/sld/1\.0\.0/StyledLayerDescriptor\.xsd&quot; version="1.0.0">';
mysld+='<UserLayer>';
mysld+=' <Name>gtopo</Name>';
mysld+=' <UserStyle>';
mysld+=' <Name>DEM_GTOPO</Name>';
mysld+=' <Title>dem style</Title>';
mysld+=' <Abstract>dem style</Abstract>';
mysld+=' <FeatureTypeStyle>';
mysld+=' <FeatureTypeName>Feature</FeatureTypeName>';
mysld+=' <Rule>';
mysld+=' <RasterSymbolizer>';
mysld+=' <Opacity>1.0</Opacity>';
mysld+=' <ColorMap>';
mysld+=' <ColorMapEntry color="#000000" quantity="-500" label="nodata" opacity="0.0"/>';
mysld+=' <ColorMapEntry color="#003300" quantity="0" label="values"/>';
mysld+=' <ColorMapEntry color="#333300" quantity="20" label="values"/>';
mysld+=' <ColorMapEntry color="#CC9900" quantity="50" label="values"/>';
mysld+=' <ColorMapEntry color="#996600" quantity="100" label="values"/>';
mysld+=' <ColorMapEntry color="#996633" quantity="150" label="values"/>';
mysld+=' <ColorMapEntry color="#CC6600" quantity="300" label="values"/>';
mysld+=' <ColorMapEntry color="#993300" quantity="800" label="values"/>';
mysld+=' <ColorMapEntry color="#663300" quantity="1100" label="values"/>';
mysld+=' <ColorMapEntry color="#663333" quantity="1800" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="2500" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="3000" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="4000" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="6000" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="7000" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="8000" label="values"/>';
mysld+=' <ColorMapEntry color="#ffffff" quantity="9000" label="values"/>';
mysld+=' </ColorMap>';
mysld+=' <OverlapBehavior>';
mysld+=' <AVERAGE/>';
mysld+=' </OverlapBehavior>';
mysld+=' <ShadedRelief/>';
mysld+=' </RasterSymbolizer>';
mysld+='</Rule>';
mysld+='</FeatureTypeStyle>';
mysld+='</UserStyle>';
mysld+='</UserLayer>';
mysld+='</StyledLayerDescriptor>';
//Then
  wmsLayer.mergeNewParams({"SLD_BODY":mysld});

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users