Hi list,
I have a geoTIFF generated in the usual way (inner types, overviews), but it’s grey-scale.
The gdalinfo:
Files: 2m_DSM__2012_2013.tif
Size is 28500, 42500
Coordinate System is:
PROJCS[“OSGB 1936 / British National Grid”,
GEOGCS[“OSGB 1936”,
DATUM[“OSGB_1936”,
SPHEROID[“Airy 1830”,6377563.396,299.3249646000044,
AUTHORITY[“EPSG”,“7001”]],
TOWGS84[446.448,-125.157,542.06,0.15,0.247,0.842,-20.489],
AUTHORITY[“EPSG”,“6277”]],
PRIMEM[“Greenwich”,0],
UNIT[“degree”,0.0174532925199433],
AUTHORITY[“EPSG”,“4277”]],
PROJECTION[“Transverse_Mercator”],
PARAMETER[“latitude_of_origin”,49],
PARAMETER[“central_meridian”,-2],
PARAMETER[“scale_factor”,0.9996012717],
PARAMETER[“false_easting”,400000],
PARAMETER[“false_northing”,-100000],
UNIT[“metre”,1,
AUTHORITY[“EPSG”,“9001”]],
AUTHORITY[“EPSG”,“27700”]]
Origin = (401000.000000000000000,312000.000000000000000)
Pixel Size = (2.000000000000000,-2.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=DEFLATE
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 401000.000, 312000.000) ( 1d59’ 6.71"W, 52d42’19.17"N)
Lower Left ( 401000.000, 227000.000) ( 1d59’ 7.62"W, 51d56’27.85"N)
Upper Right ( 458000.000, 312000.000) ( 1d 8’29.60"W, 52d42’ 7.99"N)
Lower Right ( 458000.000, 227000.000) ( 1d 9’22.38"W, 51d56’16.97"N)
Center ( 429500.000, 269500.000) ( 1d34’ 1.66"W, 52d19’20.70"N)
Band 1 Block=512x512 Type=Float32, ColorInterp=Gray
NoData Value=-9999
Overviews: 14250x21250, 7125x10625, 3563x5313, 1782x2657, 891x1329, 446x665
The problem is that when I load it into GeoServer, I see this in response to a standard WMS request:
The black bit is “nodata” (-9999). The “InputTransparentColor” has been left empty. If I set it to a colour (any colour), I get an exception for my WMS response::
Error rendering coverage on the fast path
java.lang.IllegalStateException: Unsupported data type.
However, if I zoom in so that there is no nodata in the requested area, I get the correct response:
This looks a lot like a bug, but just in case it’s not - is there anything specific I need to do with a greyscale GeoTIFF with nodata to get it to render properly?
Happens in 2.4.3 and the latest 2.5.x snapshot.
Cheers,
Jonathan
This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.