[Geoserver-users] Transparency and Geotiff

Hi everyone, I have a problem with making a border around a Geotiff transparent. My Geotiff is a satellite image and I’m serving it through Geoserver 1.7.3 via the KML reflector to Google Earth. When I use the raster sld, it shows up fine - but with a huge black border. However when I switch to my transparent_raster.sld (attached) nothing comes up in Google Earth. Gdalinfo shows the following truncated information about my file. I have seen and read the archives regarding transparency and Geotiffs but I’m obviously missing something, so I’d be grateful if anyone can shed any light about what I’m doing wrong with either my file or sld.

Many thanks

Irfon

Driver: GTiff/GeoTIFF
Files: 200x200_UTM58s.tif
200x200_UTM58s.aux
200x200_UTM58s.rrd
Size is 1546, 1524
Coordinate System is:
PROJCS[“WGS 84 / UTM zone 58S”,
GEOGCS[“WGS 84”,
DATUM[“WGS_1984”,
SPHEROID[“WGS 84”,6378137,298.2572235630016,
AUTHORITY[“EPSG”,“7030”]],
AUTHORITY[“EPSG”,“6326”]],
PRIMEM[“Greenwich”,0],
UNIT[“degree”,0.0174532925199433],
AUTHORITY[“EPSG”,“4326”]],
PROJECTION[“Transverse_Mercator”],
PARAMETER[“latitude_of_origin”,0],
PARAMETER[“central_meridian”,165],
PARAMETER[“scale_factor”,0.9996],
PARAMETER[“false_easting”,500000],
PARAMETER[“false_northing”,10000000],
UNIT[“metre”,1,
AUTHORITY[“EPSG”,“9001”]],
AUTHORITY[“EPSG”,“32758”]]
Origin = (270336.803611669340000,1478983.524525534400000)
Pixel Size = (200.000000000000000,-200.000000000000000)
Metadata:
AREA_OR_POINT=Area
TIFFTAG_SOFTWARE=IMAGINE TIFF Support
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: etif.c $ $Revision: 1.10.1.9.1.9.2.11 $ $Date: 2004/09/15 18:42:01EDT $
TIFFTAG_XRESOLUTION=1
TIFFTAG_YRESOLUTION=1
TIFFTAG_RESOLUTIONUNIT=1 (unitless)
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 270336.804, 1478983.525) (156d 4’54.22"E, 76d36’46.85"S)
Lower Left ( 270336.804, 1174183.525) (153d51’4.36"E, 79d18’10.62"S)
Upper Right ( 579536.804, 1478983.525) (168d 6’36.40"E, 76d45’1.27"S)
Lower Right ( 579536.804, 1174183.525) (168d54’13.43"E, 79d28’35.25"S)
Center ( 424936.804, 1326583.525) (161d43’59.34"E, 78d 6’57.81"S)
Band 1 Block=64x64 Type=Byte, ColorInterp=Red
Min=0.000 Max=255.000
Minimum=0.000, Maximum=255.000, Mean=59.328, StdDev=84.551
Overviews: 387x381, 194x191, 97x96, 49x48
Metadata:
STATISTICS_MINIMUM=0
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=59.327779673563
STATISTICS_MEDIAN=0
STATISTICS_MODE=0
STATISTICS_STDDEV=84.55086283518
LAYER_TYPE=athematic
STATISTICS_HISTOBINVALUES=1499448|302|166|126|112|77|65|52|52|77|42|54|59|51|52|37|79|318|565|719|759|774|745|758|808|823|853|971|943|1114|1212|1488|1487|1716|1980|2097|2179|2403|2147|2415|2405|2338|2451|2514|2383|2469|2545|2486|2402|2367|2500|2549|2243|2146|2214|2113|1935|1972|1955|1950|1906|1813|1824|1670|1647|1597|1650|1554|1438|1507|1324|1274|1286|1333|1295|1349|1211|1259|1165|1299|1193|1178|1136|1187|1194|1099|1095|1169|1072|1021|1138|1039|1003|1008|1059|982|1138|994|1085|1035|1061|1027|1079|1035|1038|1060|1092|1067|1014|1134|1005|1106|1088|1230|1097|1186|1214|1150|1316|1290|1363|1402|1548|1580|1519|1632|1624|1840|1877|2034|2167|2219|2337|2404|2460|2668|2546|2432|2764|2724|2718|2761|2973|3064|3108|3189|3249|3208|3443|3308|3388|3336|3238|3368|3361|3545|3387|3240|3341|3283|3484|3443|3568|3799|3994|4031|4105|4195|4250|4335|4622|4636|4827|5155|5496|6018|6451|7113|7892|9142|10663|13057|15791|20496|25182|26785|26901|28098|26291|23910|25163|26020|25935|27597|20757|14072|12104|10339|7910|6836|6030|5425|4948|4353|4026|3477|3359|3067|2838|2626|2606|2298|2210|2068|2037|1975|1815|1751|1696|1589|1516|1479|1447|1327|1277|1199|1128|1142|1115|1056|1064|1018|938|943|882|930|911|889|857|867|857|818|844|861|791|841|803|851|901|974|1030|1053|1114|1462|2101|8936|


Histogram
1
0


Value
0
0

transparent_raster.sld (1 KB)