[Geoserver-users] 1bit Raster Transparency - problem again

2013-11-22 Thread Dariusz Michura

Hello,

In the thread 
http://sourceforge.net/p/geoserver/mailman/message/21561325/ there is 
a problem described related to mosaic and 1bit GeoTIFF rasters. It 
concerned GeoServer 1.7.2 and according to information there is it had 
been corrected already.


Recently I encountered exactly the same problem 
(java.lang.RuntimeException: - Unable to render RenderedOp for this 
operation when setting up InputTransparentColor) with GeoServer 2.4.x.


My original rasters are like the one below:
Driver: GTiff/GeoTIFF
Files: 341.234.164.TIF
   341.234.164.tfw
Size is 9554, 6132
Coordinate System is `'
Origin = (5501192.309523180127144,5919720.349142497405410)
Pixel Size = (0.085176814373143,-0.085176814373173)
Image Structure Metadata:
  COMPRESSION=CCITTFAX4
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  ( 5501192.310, 5919720.349)
Lower Left  ( 5501192.310, 5919198.045)
Upper Right ( 5502006.089, 5919720.349)
Lower Right ( 5502006.089, 5919198.045)
Center  ( 5501599.199, 5919459.197)
Band 1 Block=9554x6 Type=Byte, ColorInterp=Palette
Computed Min/Max=0.000,1.000
  Image Structure Metadata:
NBITS=1
  Color Table (RGB with 2 entries)
0: 0,0,0,255
1: 255,255,255,255

I updated them with SRS using gdal_edit.py and used as granules for 
ImageMosaic plugin:

Driver: GTiff/GeoTIFF
Files: 341.234.164.TIF
   341.234.164.tfw
Size is 9554, 6132
Coordinate System is:
PROJCS[ETRS89 / Poland CS2000 zone 5,
GEOGCS[ETRS89,
DATUM[European_Terrestrial_Reference_System_1989,
SPHEROID[GRS 1980,6378137,298.2572221010002,
AUTHORITY[EPSG,7019]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY[EPSG,6258]],
PRIMEM[Greenwich,0],
UNIT[degree,0.0174532925199433],
AUTHORITY[EPSG,4258]],
PROJECTION[Transverse_Mercator],
PARAMETER[latitude_of_origin,0],
PARAMETER[central_meridian,15],
PARAMETER[scale_factor,0.23],
PARAMETER[false_easting,550],
PARAMETER[false_northing,0],
UNIT[metre,1,
AUTHORITY[EPSG,9001]],
AUTHORITY[EPSG,2176]]
Origin = (5501192.309523180127144,5919720.349142497405410)
Pixel Size = (0.085176814373143,-0.085176814373173)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  COMPRESSION=CCITTFAX4
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  ( 5501192.310, 5919720.349) ( 15d 1' 4.55E, 53d24'33.63N)
Lower Left  ( 5501192.310, 5919198.045) ( 15d 1' 4.54E, 53d24'16.73N)
Upper Right ( 5502006.089, 5919720.349) ( 15d 1'48.61E, 53d24'33.62N)
Lower Right ( 5502006.089, 5919198.045) ( 15d 1'48.60E, 53d24'16.72N)
Center  ( 5501599.199, 5919459.197) ( 15d 1'26.57E, 53d24'25.18N)
Band 1 Block=9554x6 Type=Byte, ColorInterp=Palette
Computed Min/Max=0.000,1.000
  Image Structure Metadata:
NBITS=1
  Color Table (RGB with 2 entries)
0: 0,0,0,255
1: 255,255,255,255


Could you possibly tell me why the problem appeared again?

regards,
--
Dariusz Michura

--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] 1bit Raster Transparency - problem again

2013-11-22 Thread Daniele Romagnoli
Hi Dariusz,
could you please open a JIRA for this?
It would also be great (for debugging purposes to understand what's
happening) if you could also attach that sample if you are allowed to do
that.
If you can't share it, you can consider creating a reduced version of it
(using gdal_translate as an instance) which is still able to replicate the
issue, or possibly, send it to me by private email (I won't share it).

Please, let us know.
Cheers,
Daniele


==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Daniele Romagnoli
Senior Software Engineer

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

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

---


On Fri, Nov 22, 2013 at 2:13 PM, Dariusz Michura d.mich...@astec.netwrote:

  Hello,

 In the thread
 http://sourceforge.net/p/geoserver/mailman/message/21561325/http://sourceforge.net/p/geoserver/mailman/message/21561325/there
  is a problem described related to mosaic and 1bit GeoTIFF rasters. It
 concerned GeoServer 1.7.2 and according to information there is it had been
 corrected already.

 Recently I encountered exactly the same problem
 (java.lang.RuntimeException: - Unable to render RenderedOp for this
 operation when setting up InputTransparentColor) with GeoServer 2.4.x.

 My original rasters are like the one below:
 Driver: GTiff/GeoTIFF
 Files: 341.234.164.TIF
341.234.164.tfw
 Size is 9554, 6132
 Coordinate System is `'
 Origin = (5501192.309523180127144,5919720.349142497405410)
 Pixel Size = (0.085176814373143,-0.085176814373173)
 Image Structure Metadata:
   COMPRESSION=CCITTFAX4
   INTERLEAVE=BAND
 Corner Coordinates:
 Upper Left  ( 5501192.310, 5919720.349)
 Lower Left  ( 5501192.310, 5919198.045)
 Upper Right ( 5502006.089, 5919720.349)
 Lower Right ( 5502006.089, 5919198.045)
 Center  ( 5501599.199, 5919459.197)
 Band 1 Block=9554x6 Type=Byte, ColorInterp=Palette
 Computed Min/Max=0.000,1.000
   Image Structure Metadata:
 NBITS=1
   Color Table (RGB with 2 entries)
 0: 0,0,0,255
 1: 255,255,255,255

 I updated them with SRS using gdal_edit.py and used as granules for
 ImageMosaic plugin:
 Driver: GTiff/GeoTIFF
 Files: 341.234.164.TIF
341.234.164.tfw
 Size is 9554, 6132
 Coordinate System is:
 PROJCS[ETRS89 / Poland CS2000 zone 5,
 GEOGCS[ETRS89,
 DATUM[European_Terrestrial_Reference_System_1989,
 SPHEROID[GRS 1980,6378137,298.2572221010002,
 AUTHORITY[EPSG,7019]],
 TOWGS84[0,0,0,0,0,0,0],
 AUTHORITY[EPSG,6258]],
 PRIMEM[Greenwich,0],
 UNIT[degree,0.0174532925199433],
 AUTHORITY[EPSG,4258]],
 PROJECTION[Transverse_Mercator],
 PARAMETER[latitude_of_origin,0],
 PARAMETER[central_meridian,15],
 PARAMETER[scale_factor,0.23],
 PARAMETER[false_easting,550],
 PARAMETER[false_northing,0],
 UNIT[metre,1,
 AUTHORITY[EPSG,9001]],
 AUTHORITY[EPSG,2176]]
 Origin = (5501192.309523180127144,5919720.349142497405410)
 Pixel Size = (0.085176814373143,-0.085176814373173)
 Metadata:
   AREA_OR_POINT=Area
 Image Structure Metadata:
   COMPRESSION=CCITTFAX4
   INTERLEAVE=BAND
 Corner Coordinates:
 Upper Left  ( 5501192.310, 5919720.349) ( 15d 1' 4.55E, 53d24'33.63N)
 Lower Left  ( 5501192.310, 5919198.045) ( 15d 1' 4.54E, 53d24'16.73N)
 Upper Right ( 5502006.089, 5919720.349) ( 15d 1'48.61E, 53d24'33.62N)
 Lower Right ( 5502006.089, 5919198.045) ( 15d 1'48.60E, 53d24'16.72N)
 Center  ( 5501599.199, 5919459.197) ( 15d 1'26.57E, 53d24'25.18N)
 Band 1 Block=9554x6 Type=Byte, ColorInterp=Palette
 Computed Min/Max=0.000,1.000
   Image Structure Metadata:
 NBITS=1
   Color Table (RGB with 2 entries)
 0: 0,0,0,255
 1: 255,255,255,255


 Could you possibly tell me why the problem appeared again?

 regards,
 --
  Dariusz Michura



 --
 Shape the Mobile Experience: Free Subscription
 Software experts and developers: Be at the forefront of tech innovation.
 Intel(R) Software Adrenaline delivers strategic insight and game-changing
 conversations that shape the rapidly evolving mobile landscape. Sign up
 now.
 http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now.