[Geoserver-devel] Image mosaic black areas (transparency?) problem in 1.7.4

Hi devs (Simone :slight_smile:

these days i switched from 1.7.2 to 1.7.4 because of the REST api, and
its working just fine.
But after I finished with REST, I noticed strange behaviour in mosiac coverage.

It is similar to this issue http://jira.codehaus.org/browse/GEOT-1642
(and its related and dependent ones)

My tiffs are converted to tiffs with internal jpeg compression, using
gdal_translate. Nodata areas are in white colour.

When I put tiled layer black areas randomly start to appear where
there are is no raster data.
Now I also tried nightly build and it is the same situation as 1.7.4.
I repeat, in 1.7.2 it works perfect.
I attached screenshots of the problem.

One notice, in 1.7.4 when edit coverage I had to put
OutputTransparentColor: #000000, if I put OutputTransparentColor:
#FFFFFF as in 1.7.2 areas without rasters are in black color (images
also attached) Why is that, im curious?

Anyone had similar problems?

Thank you, best regards

--
Ivan Grcic

(attachments)

mosaic174_blackAreas.zip (374 KB)

Ciao Ivan,
is there any chance that you can provide some data so that I can try
to reproduce this behavior locally?

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Jun 9, 2009 at 7:14 PM, Ivan Grcic<ivan.grcic@anonymised.com> wrote:

Hi devs (Simone :slight_smile:

these days i switched from 1.7.2 to 1.7.4 because of the REST api, and
its working just fine.
But after I finished with REST, I noticed strange behaviour in mosiac coverage.

It is similar to this issue http://jira.codehaus.org/browse/GEOT-1642
(and its related and dependent ones)

My tiffs are converted to tiffs with internal jpeg compression, using
gdal_translate. Nodata areas are in white colour.

When I put tiled layer black areas randomly start to appear where
there are is no raster data.
Now I also tried nightly build and it is the same situation as 1.7.4.
I repeat, in 1.7.2 it works perfect.
I attached screenshots of the problem.

One notice, in 1.7.4 when edit coverage I had to put
OutputTransparentColor: #000000, if I put OutputTransparentColor:
#FFFFFF as in 1.7.2 areas without rasters are in black color (images
also attached) Why is that, im curious?

Anyone had similar problems?

Thank you, best regards

--
Ivan Grcic

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Ciao Ivan,
you have actually discovered a featuer instead of a bug :slight_smile: (reminder
to myself, write documentation for the mosaic plugin).

You have hole between the various elements. The new mosaic will have a
consistent behavior with holes (while the hole hadn't): it will always
use the background values to fill the holes.
This depends on the data type, but for byte data is 0 (your case).
There is an option to set this value explcitly, in your case
I would put 255, so that the filling will be result in white color
(yeah, the vale is replicated over the varios bands of the data). You
do not need to set any output color.

Simone.

-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Jun 9, 2009 at 8:10 PM, Simone
Giannecchini<simone.giannecchini@anonymised.com> wrote:

Ciao Ivan,
is there any chance that you can provide some data so that I can try
to reproduce this behavior locally?

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Jun 9, 2009 at 7:14 PM, Ivan Grcic<ivan.grcic@anonymised.com> wrote:

Hi devs (Simone :slight_smile:

these days i switched from 1.7.2 to 1.7.4 because of the REST api, and
its working just fine.
But after I finished with REST, I noticed strange behaviour in mosiac coverage.

It is similar to this issue http://jira.codehaus.org/browse/GEOT-1642
(and its related and dependent ones)

My tiffs are converted to tiffs with internal jpeg compression, using
gdal_translate. Nodata areas are in white colour.

When I put tiled layer black areas randomly start to appear where
there are is no raster data.
Now I also tried nightly build and it is the same situation as 1.7.4.
I repeat, in 1.7.2 it works perfect.
I attached screenshots of the problem.

One notice, in 1.7.4 when edit coverage I had to put
OutputTransparentColor: #000000, if I put OutputTransparentColor:
#FFFFFF as in 1.7.2 areas without rasters are in black color (images
also attached) Why is that, im curious?

Anyone had similar problems?

Thank you, best regards

--
Ivan Grcic

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

On Thu, Jun 11, 2009 at 8:58 PM, Simone
Giannecchini<simone.giannecchini@anonymised.com> wrote:

Ciao Ivan,
you have actually discovered a featuer instead of a bug :slight_smile: (reminder
to myself, write documentation for the mosaic plugin).

You have hole between the various elements. The new mosaic will have a
consistent behavior with holes (while the hole hadn't): it will always
use the background values to fill the holes.
This depends on the data type, but for byte data is 0 (your case).
There is an option to set this value explcitly, in your case
I would put 255, so that the filling will be result in white color

Ah instead of 255 i was trying with hex #FFFFFF!

Its working perfect now, grazie mile Simone!

(yeah, the vale is replicated over the varios bands of the data). You
do not need to set any output color.

Simone.

-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Jun 9, 2009 at 8:10 PM, Simone
Giannecchini<simone.giannecchini@anonymised.com> wrote:

Ciao Ivan,
is there any chance that you can provide some data so that I can try
to reproduce this behavior locally?

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Jun 9, 2009 at 7:14 PM, Ivan Grcic<ivan.grcic@anonymised.com> wrote:

Hi devs (Simone :slight_smile:

these days i switched from 1.7.2 to 1.7.4 because of the REST api, and
its working just fine.
But after I finished with REST, I noticed strange behaviour in mosiac coverage.

It is similar to this issue http://jira.codehaus.org/browse/GEOT-1642
(and its related and dependent ones)

My tiffs are converted to tiffs with internal jpeg compression, using
gdal_translate. Nodata areas are in white colour.

When I put tiled layer black areas randomly start to appear where
there are is no raster data.
Now I also tried nightly build and it is the same situation as 1.7.4.
I repeat, in 1.7.2 it works perfect.
I attached screenshots of the problem.

One notice, in 1.7.4 when edit coverage I had to put
OutputTransparentColor: #000000, if I put OutputTransparentColor:
#FFFFFF as in 1.7.2 areas without rasters are in black color (images
also attached) Why is that, im curious?

Anyone had similar problems?

Thank you, best regards

--
Ivan Grcic

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Ivan Grcic

Ciao Ivan,
good to know that things work out.
I actually found a minor bug related to GEOT-1642 while testing your
data, which I am going to fix right now.
However, as you noticed the solution for your problem is the one I
gave you already.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Thu, Jun 11, 2009 at 10:37 PM, Ivan Grcic<ivan.grcic@anonymised.com> wrote:

On Thu, Jun 11, 2009 at 8:58 PM, Simone
Giannecchini<simone.giannecchini@anonymised.com> wrote:

Ciao Ivan,
you have actually discovered a featuer instead of a bug :slight_smile: (reminder
to myself, write documentation for the mosaic plugin).

You have hole between the various elements. The new mosaic will have a
consistent behavior with holes (while the hole hadn't): it will always
use the background values to fill the holes.
This depends on the data type, but for byte data is 0 (your case).
There is an option to set this value explcitly, in your case
I would put 255, so that the filling will be result in white color

Ah instead of 255 i was trying with hex #FFFFFF!

Its working perfect now, grazie mile Simone!

(yeah, the vale is replicated over the varios bands of the data). You
do not need to set any output color.

Simone.

-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Jun 9, 2009 at 8:10 PM, Simone
Giannecchini<simone.giannecchini@anonymised.com> wrote:

Ciao Ivan,
is there any chance that you can provide some data so that I can try
to reproduce this behavior locally?

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Jun 9, 2009 at 7:14 PM, Ivan Grcic<ivan.grcic@anonymised.com> wrote:

Hi devs (Simone :slight_smile:

these days i switched from 1.7.2 to 1.7.4 because of the REST api, and
its working just fine.
But after I finished with REST, I noticed strange behaviour in mosiac coverage.

It is similar to this issue http://jira.codehaus.org/browse/GEOT-1642
(and its related and dependent ones)

My tiffs are converted to tiffs with internal jpeg compression, using
gdal_translate. Nodata areas are in white colour.

When I put tiled layer black areas randomly start to appear where
there are is no raster data.
Now I also tried nightly build and it is the same situation as 1.7.4.
I repeat, in 1.7.2 it works perfect.
I attached screenshots of the problem.

One notice, in 1.7.4 when edit coverage I had to put
OutputTransparentColor: #000000, if I put OutputTransparentColor:
#FFFFFF as in 1.7.2 areas without rasters are in black color (images
also attached) Why is that, im curious?

Anyone had similar problems?

Thank you, best regards

--
Ivan Grcic

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Ivan Grcic

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Hi Simone,

some problems again :frowning: Although background color works fine now for single layer, when you combine mosaic layers in one WMS layers, the background color (areas where data doesnt exist) covers the other layer data. In 1.7.2 works normal, in 1.7.4 problem occurs.

I attached screenshots (i changed the white bg color for gray, sou you can see where the extent of two mosaics are)

Any suggestions?

Thank you

On Thu, Jun 11, 2009 at 8:58 PM, Simone Giannecchini <simone.giannecchini@anonymised.com> wrote:

Ciao Ivan,
you have actually discovered a featuer instead of a bug :slight_smile: (reminder
to myself, write documentation for the mosaic plugin).

You have hole between the various elements. The new mosaic will have a
consistent behavior with holes (while the hole hadn’t): it will always
use the background values to fill the holes.
This depends on the data type, but for byte data is 0 (your case).
There is an option to set this value explcitly, in your case
I would put 255, so that the filling will be result in white color
(yeah, the vale is replicated over the varios bands of the data). You
do not need to set any output color.

Simone.


Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini


On Tue, Jun 9, 2009 at 8:10 PM, Simone

Giannecchini<simone.giannecchini@anonymised.com> wrote:

Ciao Ivan,
is there any chance that you can provide some data so that I can try
to reproduce this behavior locally?

Simone.

Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini


On Tue, Jun 9, 2009 at 7:14 PM, Ivan Grcic<ivan.grcic@anonymised.com> wrote:

Hi devs (Simone :slight_smile:

these days i switched from 1.7.2 to 1.7.4 because of the REST api, and
its working just fine.
But after I finished with REST, I noticed strange behaviour in mosiac coverage.

It is similar to this issue http://jira.codehaus.org/browse/GEOT-1642
(and its related and dependent ones)

My tiffs are converted to tiffs with internal jpeg compression, using
gdal_translate. Nodata areas are in white colour.

When I put tiled layer black areas randomly start to appear where
there are is no raster data.
Now I also tried nightly build and it is the same situation as 1.7.4.
I repeat, in 1.7.2 it works perfect.
I attached screenshots of the problem.

One notice, in 1.7.4 when edit coverage I had to put
OutputTransparentColor: #000000, if I put OutputTransparentColor:
#FFFFFF as in 1.7.2 areas without rasters are in black color (images
also attached) Why is that, im curious?

Anyone had similar problems?

Thank you, best regards

–
Ivan Grcic


Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

–
Ivan Grcic

(attachments)

1.jpg
2.jpg

See my comment on http://jira.codehaus.org/browse/GEOS-3197.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Jun 23, 2009 at 4:11 PM, Ivan Grcic<ivan.grcic@anonymised.com> wrote:

Hi Simone,

some problems again :frowning: Although background color works fine now for single
layer, when you combine mosaic layers in one WMS layers, the background
color (areas where data doesnt exist) covers the other layer data. In 1.7.2
works normal, in 1.7.4 problem occurs.

I attached screenshots (i changed the white bg color for gray, sou you can
see where the extent of two mosaics are)

Any suggestions?

Thank you

On Thu, Jun 11, 2009 at 8:58 PM, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:

Ciao Ivan,
you have actually discovered a featuer instead of a bug :slight_smile: (reminder
to myself, write documentation for the mosaic plugin).

You have hole between the various elements. The new mosaic will have a
consistent behavior with holes (while the hole hadn't): it will always
use the background values to fill the holes.
This depends on the data type, but for byte data is 0 (your case).
There is an option to set this value explcitly, in your case
I would put 255, so that the filling will be result in white color
(yeah, the vale is replicated over the varios bands of the data). You
do not need to set any output color.

Simone.

-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Jun 9, 2009 at 8:10 PM, Simone
Giannecchini<simone.giannecchini@anonymised.com> wrote:
> Ciao Ivan,
> is there any chance that you can provide some data so that I can try
> to reproduce this behavior locally?
>
> Simone.
> -------------------------------------------------------
> Ing. Simone Giannecchini
> GeoSolutions S.A.S.
> Owner - Software Engineer
> Via Carignoni 51
> 55041 Camaiore (LU)
> Italy
>
> phone: +39 0584983027
> fax: +39 0584983027
> mob: +39 333 8128928
>
>
> http://www.geo-solutions.it
> http://simboss.blogspot.com/
> http://www.linkedin.com/in/simonegiannecchini
>
> -------------------------------------------------------
>
>
>
> On Tue, Jun 9, 2009 at 7:14 PM, Ivan Grcic<ivan.grcic@anonymised.com> wrote:
>> Hi devs (Simone :slight_smile:
>>
>> these days i switched from 1.7.2 to 1.7.4 because of the REST api, and
>> its working just fine.
>> But after I finished with REST, I noticed strange behaviour in mosiac
>> coverage.
>>
>> It is similar to this issue http://jira.codehaus.org/browse/GEOT-1642
>> (and its related and dependent ones)
>>
>> My tiffs are converted to tiffs with internal jpeg compression, using
>> gdal_translate. Nodata areas are in white colour.
>>
>> When I put tiled layer black areas randomly start to appear where
>> there are is no raster data.
>> Now I also tried nightly build and it is the same situation as 1.7.4.
>> I repeat, in 1.7.2 it works perfect.
>> I attached screenshots of the problem.
>>
>>
>> One notice, in 1.7.4 when edit coverage I had to put
>> OutputTransparentColor: #000000, if I put OutputTransparentColor:
>> #FFFFFF as in 1.7.2 areas without rasters are in black color (images
>> also attached) Why is that, im curious?
>>
>> Anyone had similar problems?
>>
>> Thank you, best regards
>>
>> --
>> Ivan Grcic
>>
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> Geoserver-devel mailing list
>> Geoserver-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>
>>
>

--
Ivan Grcic

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge
conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference:
$250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel