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:
http://wppgeog3/geoserver/Misc_Rasters/wms?LAYERS=Misc_Rasters%3A2m_DSM__2012_2013&STYLES=&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A27700&BBOX=372556.640625,184500,486443.359375,354500&WIDTH=343&HEIGHT=512
I get a black and white image (nodata shows as black). See attached.
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.
Unsupported data type.
However, if I zoom in so that there is no nodata in the requested area, I get the correct response.
Happens in 2.4.3 and the 2.5.x snapshot built 29th April.
You can download the full raster here (it’s 2.2GB!):
http://maps.warwickshire.gov.uk/shr/pyramided_large.tif
|