[Geoserver-devel] writing a testcase for transparency on wms images

Hi,

as part of pull request 595, about transparency in animated gifs:

https://github.com/geoserver/geoserver/pull/595

I want to create some tests to actually test this.

During a test run I find some data sets which apparenly are used to use
as mockdata, but I cannot create or see the actual images.
My best bet was to find the data used for other testcases (like in

https://github.com/geoserver/geoserver/blob/master/src/wms/src/test/java/org/geoserver/wms/wms_1_1_1/DimensionsRasterGetMapTest.java

and use that to create a local geoserver service to actually be able to
see those images, and determine which pixels should be transparent or not.

Can somebody guide me in this proces? I'm often available on IRC
GeoServer or QGIS

Regards,

Richard Duivenvoorde

On Tue, Jun 3, 2014 at 6:56 PM, Richard Duivenvoorde <rdmailings@anonymised.com>
wrote:

Hi,

as part of pull request 595, about transparency in animated gifs:

https://github.com/geoserver/geoserver/pull/595

I want to create some tests to actually test this.

During a test run I find some data sets which apparenly are used to use
as mockdata, but I cannot create or see the actual images.
My best bet was to find the data used for other testcases (like in

https://github.com/geoserver/geoserver/blob/master/src/wms/src/test/java/org/geoserver/wms/wms_1_1_1/DimensionsRasterGetMapTest.java

and use that to create a local geoserver service to actually be able to
see those images, and determine which pixels should be transparent or not.

The source images are located in src/test/resources in either the WMS module
and the main module, for example:
https://github.com/geoserver/geoserver/tree/master/src/main/src/test/java/org/geoserver/data/test
https://github.com/geoserver/geoserver/tree/master/src/wms/src/test/resources/org/geoserver/wms/dimension

I guess the simplest approach would be to configure one of these mosaics
with dimensions,
zoom out, ask for transparent=true, and then check a pixel outside of the
mosaic, it should
be transparent

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

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