Hi Antonio, I once had the same issue with GeoTiffs and the problem was related to the version of the jai-imagio-Version that I was using. I obviously had the wrong one and after adding the correct jar (http://download.java.net/media/jai-imageio/builds/release/1.1/) The tiffs were showing up correctly. I hope this could help you, too.
Cheers, Torsten -------------------------------------------------------------------------- T-Systems International GmbH Torsten Drey Spezialist Geo-Consulting GeoServices/GIS Vorgebirgsstraße 49 D-53119 Bonn Fon: +49 (0)228 9841 3690 Fax: +49 (0)228 9841 3990 E-Mail: [email protected] Internet: http://www.t-systems.com T-Systems International GmbH Aufsichtsrat: René Obermann (Vorsitzender) Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Olaf Heyden, Georg Pepping, Klaus Werner Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der Gesellschaft: Frankfurt am Main Notice: This transmittal and/or attachments may be privileged or confidential. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, or copying is strictly prohibited. If you received this transmittal in error, please notify us immediately by reply and immediately delete this message and all its attachments. Thank you. -----Ursprüngliche Nachricht----- ---------------------------------------------------------------------- Message: 1 Date: Thu, 6 Oct 2011 18:43:49 +0200 From: Andrea Aime <[email protected]> Subject: Re: [Geoserver-users] Managing Geotiff files with three layers To: Ant?nio Rocha <[email protected]> Cc: [email protected] Message-ID: <ca+nxmtsspiudlgq3au1zvdxubzvir_tl3gc1akdhog3ft8n...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 2011/10/6 Ant?nio Rocha <[email protected]>: > Greetings > I have added to Store a three-band raster file (RGB). When I do the > Publishing (Style: raster) and Preview (in OpenLayers) it's all black. > What shall be the correct process to store and display 3-band Raster > like this one. Normal RGB files just show up directly, no need for any manipulation. I guess that 3 band does not have teh proper color interpretation flag set on the bands? Can you run gdalinfo against the file and report the output? 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 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 ------------------------------------------------------- ------------------------------ Message: 3 Date: Thu, 06 Oct 2011 18:13:45 +0100 From: Ant?nio Rocha <[email protected]> Subject: Re: [Geoserver-users] Managing Geotiff files with three layers To: Andrea Aime <[email protected]> Cc: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello Andrea Here goes: Driver: GTiff/GeoTIFF Files: RGB-SPOT_August.tif Size is 30201, 30344 Coordinate System is: PROJCS["unnamed", GEOGCS[, DATUM["unknown", SPHEROID["unnamed",6378137,298.2572221010002]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",39.66825833333333], PARAMETER["central_meridian",-8.133108333333332], PARAMETER["scale_factor",1], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] Origin = (-109786.366791263004416,-56278.403569938498549) Pixel Size = (2.501159457365760,-2.501159457365760) Metadata: TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( -109786.367, -56278.404) ( 9d24'11.55"W, 39d 9'15.95"N) Lower Left ( -109786.367, -132173.586) ( 9d23'28.05"W, 38d28'15.35"N) Upper Right ( -34248.850, -56278.404) ( 8d31'45.73"W, 39d 9'38.44"N) Lower Right ( -34248.850, -132173.586) ( 8d31'32.15"W, 38d28'37.30"N) Center ( -72017.608, -94225.995) ( 8d57'44.37"W, 38d48'59.71"N) Band 1 Block=30201x1 Type=Byte, ColorInterp=Red Band 2 Block=30201x1 Type=Byte, ColorInterp=Green Band 3 Block=30201x1 Type=Byte, ColorInterp=Blue Any idea? Andrea Aime wrote: > 2011/10/6 Ant?nio Rocha <[email protected]>: > >> Greetings >> I have added to Store a three-band raster file (RGB). When I do the >> Publishing (Style: raster) and Preview (in OpenLayers) it's all black. >> What shall be the correct process to store and display 3-band Raster >> like this one. >> > > Normal RGB files just show up directly, no need for any manipulation. > I guess that 3 band does not have teh proper color interpretation flag > set on the bands? > > Can you run gdalinfo against the file and report the output? > > Cheers > Andrea > > -- Ant?nio Rocha Aerospace & Defence Portugal DEIMOS Engenharia, SA Av. D. Joao II, Lt 1.17.01 - 10?, Ed. Torre Zen 1998-023 Lisboa, Portugal Ph: +351 21 893 3010 Fax: +351 21 896 9099 http://www.deimos.pt __________ Information from ESET NOD32 Antivirus, version of virus signature database 6522 (20111006) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ------------------------------ Message: 4 Date: Thu, 6 Oct 2011 20:07:18 +0200 From: Andrea Aime <[email protected]> Subject: Re: [Geoserver-users] Managing Geotiff files with three layers To: Ant?nio Rocha <[email protected]> Cc: [email protected] Message-ID: <ca+nxmtvrvijkkqymo_qti30mazthchjwdu5z9vxzgd0gqww...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 2011/10/6 Ant?nio Rocha <[email protected]>: > Band 1 Block=30201x1 Type=Byte, ColorInterp=Red Band 2 Block=30201x1 > Type=Byte, ColorInterp=Green Band 3 Block=30201x1 Type=Byte, > ColorInterp=Blue Hmmm... odd. Are you using the standard "raster" style? <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" 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"> <NamedLayer> <Name>default_raster</Name> <UserStyle> <Title>Default Raster</Title> <Abstract>A sample style that draws a raster, good for displaying imagery</Abstract> <FeatureTypeStyle> <Rule> <Name>rule1</Name> <Title>Opaque Raster</Title> <Abstract>A raster with 100% opacity</Abstract> <RasterSymbolizer> <Opacity>1.0</Opacity> </RasterSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> All RGB files I have display fine with it. If it's still an issue can you make the original file available for local tests? 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 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 ------------------------------------------------------- ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
