Hi Andrea

I tried also arc_sample layer with different opacities. The results are the 
same, opacity is not applied. But when I use "format_options" in the wms 
request(http://localhost:8080/geoserver/wms/reflect?layers=nurc:Arc_Sample&format_options=layout:foo),
 the opacity is applied correctly. I am confused as I don't even have 
"layout:foo" in the GS_data_dir!! With previous version of GS (2.0.2) I didn't 
have such a problem.
 I am using GS: 
version = 2.1-SNAPSHOT
svn revision = 15702
build date = 19-Apr-2011 05:08
geotools version = 2.7-SNAPSHOT
geotools revision = 36962
hudson build = -1 

Cheers
Manouchehr



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andrea 
Aime
Sent: Dienstag, 19. April 2011 14:59
To: Amini, Manouchehr
Cc: [email protected]
Subject: Re: [Geoserver-users] Coverage style error_GS.2.1.RC4

On Tue, Apr 19, 2011 at 10:57 AM, Amini, Manouchehr <[email protected]> 
wrote:
> Hi Andrea
> Thanks for your response. I use png and had no problem with previous version 
> of GS. So I guess there should be a bug in the current version of GS.

I can't reproduce it.
Used this style with the arc_sample layer that ships among the examples and 
used this style:

<?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor 
version="1.0.0"
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";
  xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd";>
  <NamedLayer>
    <Name>rain</Name>
    <UserStyle>
      <Name>rain</Name>
      <Title>Rain distribution</Title>
      <FeatureTypeStyle>
        <Rule>
          <RasterSymbolizer>
            <Opacity>1.0</Opacity>
            <ColorMap>
              <ColorMapEntry color="#FF0000" opacity="0" quantity="0" />
              <ColorMapEntry color="#FFFFFF" opacity="0.5" quantity="100"/>
              <ColorMapEntry color="#00FF00" opacity="0.5" quantity="2000"/>
              <ColorMapEntry color="#0000FF" opacity="0.5" quantity="5000"/>
            </ColorMap>
          </RasterSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

and I get this result, which has transparency as predicted, when using PNG 
output:

http://demo.geo-solutions.it/share/rain.png

Also overlayed it with a vector layer to make sure (raster layer on top of 
course), and I get this:

http://demo.geo-solutions.it/share/overlay.png

It seems to me transparency is properly respected in both cases.
Please try out a nightly build here, RC4 is two weeks old and we made some 
fixes to raster rendering in the meantime:

http://gridlock.opengeo.org/geoserver/2.1.x/

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 333 8128928

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

-------------------------------------------------------

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to