Ciao Pedro,
please, read below...
On 9/3/07, Pedro Mendes <mendes@anonymised.com> wrote:
Hi,
I´m using the ImageMosaic plugin (WCS branch) to built a coverage based on
Geotiffs. The index shapefile was created using Gdal and it went with no
probs.
Well, using gdaltindex is not always sufficient in order to build the
index for the mosaic plugin. The MosaicIndexBuilder utility does not
only create the index shapefile for the mosaic but it also creates a
properties file used to check various things. In this special case I
suspect that your tiff files are paletted but each of them is using a
different palette, hence a color expansion must be performed prior to
mosaicking them. The ImageMosaic plugin relies on the properties files
created by the MosaicIndexBuilder to spot such a situation. If you
created the file by hand without adding the proper tags, well things
can get pretty messed up.
For reference see http://jira.codehaus.org/browse/GEOS-1109:
Just to make sure that this is the cause of your problems, please,
send two of your tif fifles or simply paste here the result of fthe
gdalinfo on them. Best thing to do would probably be building the
index using the MosaicIndexBuilder.
The situation is that when I display the coverage in Geoserver is was
supposed to be transparent, therefore the pixels with no data shouldn't be
displayed, but they come out in color black.
When i tried to use this layer on a map, i passed the parameter
'transparent=true' to the wms client (OpenLayers) and the layer does come
out transparent except the area (bounding box) covered by the shapefile.
Here are the parameters:
http://localhost:8080/geoserver/wms?bbox=-33597.036667,95999.973333,-25597.316333,104999.907667&styles=&Format=application/openlayers&request=GetMap&layers=gir:map_1&width=539&height=550&srs=EPSG:27492
I tried to change formats between png and gif, but same happens.
The output format has not much to do with this issue.
Maybe the problem is with the raster SLD, if i have to indicate, using some
descriptor, that 'No Data' pixels has to come out transparent...i don't
know. even when i tried to apply the default raster SLD the raster layer
turns out white! i´m slamming my head with this for about one week...
No please, don't do that but post messages instead
!
I am pretty sure that your problem will vanish once you build the
index correctly. If it turns out to be a bug, we'll fix it
(hopefully!).
Ciao,
Simone.
Thx in advance!
Pedro Mendes
--
View this message in context: http://www.nabble.com/Problems-with-Transparency-in-raster-layers-tf4367514.html#a12448502
Sent from the GeoServer - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy
phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928
http://www.geo-solutions.it
-------------------------------------------------------