I have some Tiff files in EPSG:26915 (UTM 15 N) which I am requesting via
WMS in EPSG:4326 to display on a map.
When the image is reprojected, it is rotated and the padding area added to
make the image rectangular again has its value set to 0 instead of to the
No Data value.
Since my image also has actual values of 0, this means that the new padding
which should be set to No Data (and rendered transparent) is instead
rendered with a color as though it had data.
This screenshot makes it clear what I mean: Screenshot:
http://s31.postimg.org/5f96rqvi3/what_am_i_doing_wrong.png
Has anyone seen this? Am I doing something wrong? I tried searching, but I
might not be describing it correctly in my searches. The best I could do
was this 7 year old GDAL ticket: https://trac.osgeo.org/gdal/ticket/2724
Thanks,
Michael
Other info that might be relavant:
GeoServer Build Information
>
> Version 2.8.3
> Git Revision 1c8c9ba0f74a465c397d46cf19d3b34b95b2fb6e
> Build Date 22-Mar-2016 21:12
> GeoTools Version 14.3 (rev 2298d56000bef6f526b521a480316ea544c74571)
> GeoWebCache Version 1.8.2 (rev
> 1.8.x/442d5127d1a01942f4c04c8140ade4c4538bb16d)
This is running on Windows Server 2012 (64 bit), but running 32 bit
GeoServer and 32 bit java.
My WMS request looks like this:
http://MyServer/geoserver/rabaey-fred/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/jpeg&TRANSPARENT=true&LAYERS=myLayer&STYLES=rainbowstatic&SRS=EPSG:4326&WIDTH=331&HEIGHT=769&BBOX=MyBBox
The GeoServer log for that request looks like this:
2016-04-22 09:34:37,549 INFO [geoserver.wms] -
> Request: getMap
> Filters = null
> BgColor = java.awt.Color[r=255,g=255,b=255]
> SRS = EPSG:4326
> Tiled = false
> Palette = null
> FeatureVersion = null
> Styles = [StyleImpl[ name=rainbowstatic]]
> Layers = [org.geoserver.wms.MapLayerInfo@63494493]
> MaxFeatures = null
> Angle = 0.0
> Crs = GEOGCS["WGS 84",
> DATUM["World Geodetic System 1984",
> SPHEROID["WGS 84", 6378137.0, 298.257223563,
> AUTHORITY["EPSG","7030"]],
> AUTHORITY["EPSG","6326"]],
> PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
> UNIT["degree", 0.017453292519943295],
> AXIS["Geodetic longitude", EAST],
> AXIS["Geodetic latitude", NORTH],
> AUTHORITY["EPSG","4326"]]
> Bbox = SRSEnvelope[MyBbox]
> Env = {}
> StartIndex = null
> CQLFilter = null
> RemoteOwsURL = null
> ViewParams = null
> FormatOptions = {}
> FeatureId = null
> RemoteOwsType = null
> Elevation = []
> Sld = null
> ValidateSchema = false
> Interpolations = []
> Transparent = true
> StyleFormat = sld
> StyleUrl = null
> SldBody = null
> TilesOrigin = null
> Exceptions = SE_XML
> StyleVersion = null
> SldVersion = null
> StyleBody = null
> ScaleMethod = null
> Time = []
> Height = 769
> Width = 331
> Format = image/png8
> Buffer = 0
> Filter = null
> Request = GetMap
> BaseUrl = http://MyServer/geoserver/
> RawKvp = {REQUEST=GetMap, FORMAT=image/png8, SRS=EPSG:4326, BBOX=MyBBox,
> VERSION=1.1.1, STYLES=rainbowstatic, SERVICE=WMS, WIDTH=331, HEIGHT=769,
> TRANSPARENT=true, LAYERS=MyLayer}
> Get = true
> RequestCharset = UTF-8
> Version = 1.1.1
Gdalinfo reports the following for the source .tiff image:
Driver: GTiff/GeoTIFF
> Files: 0-0-62.tiff
> Size is 247, 229
> Coordinate System is:
> PROJCS["NAD83 / UTM zone 15N",
> GEOGCS["NAD83",
> DATUM["North_American_Datum_1983",
> SPHEROID["GRS 1980",6378137,298.257222101,
> AUTHORITY["EPSG","7019"]],
> TOWGS84[0,0,0,0,0,0,0],
> AUTHORITY["EPSG","6269"]],
> PRIMEM["Greenwich",0,
> AUTHORITY["EPSG","8901"]],
> UNIT["degree",0.0174532925199433,
> AUTHORITY["EPSG","9122"]],
> AUTHORITY["EPSG","4269"]],
> PROJECTION["Transverse_Mercator"],
> PARAMETER["latitude_of_origin",0],
> PARAMETER["central_meridian",-93],
> PARAMETER["scale_factor",0.9996],
> PARAMETER["false_easting",500000],
> PARAMETER["false_northing",0],
> UNIT["metre",1,
> AUTHORITY["EPSG","9001"]],
> AXIS["Easting",EAST],
> AXIS["Northing",NORTH],
> AUTHORITY["EPSG","26915"]]
> Origin = (myOrigin,myOrigin)
> Pixel Size = (3.000000000000000,-3.000000000000000)
> Metadata:
> AREA_OR_POINT=Area
> Image Structure Metadata:
> INTERLEAVE=BAND
> Corner Coordinates:
> Upper Left ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x'xx.xx"W, xxdxx'xx.xx"N)
> Lower Left ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x'xx.xx"W, xxdxx'xx.xx"N)
> Upper Right ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x'xx.xx"W, xxdxx'xx.xx"N)
> Lower Right ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x'xx.xx"W, xxdxx'xx.xx"N)
> Center ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x'xx.xx"W, xxdxx'xx.xx"N)
> Band 1 Block=247x8 Type=Float32, ColorInterp=Gray
> NoData Value=1.701410009187828e+038
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users