Done:
http://jira.codehaus.org/browse/GEOS-1895
regards
Stefan
-----Ursprüngliche Nachricht-----
Von: Andrea Aime [mailto:aaime@anonymised.com]
Gesendet am: Montag, 28. April 2008 22:35
An: Ziegler Stefan
Cc: geoserver-users
Betreff: Re: [Geoserver-users] pdf output of raster data
Ziegler Stefan ha scritto:
Hi
I’m a little bit confused about the pdf output of raster data. If you
try the sf:dem example and decrease the upper y axis value from
4928000.0 to 4924000.0 you get a pdf with lots of white space. I would
rather expect a distorted image like you would get if you request a png.
If you decrease 4924000.0 to 4920000.0 you get a empty pdf. Any ideas?
I’m using Geosever 1.6.3.
I tried with the following:
Unchanged from preview (they do look the same):
http://localhost:8080/geoserver/wms?HEIGHT=552&WIDTH=800&LAYERS=sf%3Adem&STYLES=&SRS=EPSG%3A26713&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=584669.0625,4910773.203125,614340.9375,4931246.796875&bgcolor=0xAAAAAA
http://localhost:8080/geoserver/wms?HEIGHT=552&WIDTH=800&LAYERS=sf%3Adem&STYLES=&SRS=EPSG%3A26713&FORMAT=application/pdf&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=584669.0625,4910773.203125,614340.9375,4931246.796875&bgcolor=0xAAAAAA
Increasing maxy to 4940000 (again the same):
http://localhost:8080/geoserver/wms?HEIGHT=552&WIDTH=800&LAYERS=sf%3Adem&STYLES=&SRS=EPSG%3A26713&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=584669.0625,4910773.203125,614340.9375,4940000&bgcolor=0xAAAAAA
http://localhost:8080/geoserver/wms?HEIGHT=552&WIDTH=800&LAYERS=sf%3Adem&STYLES=&SRS=EPSG%3A26713&FORMAT=application/pdf&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=584669.0625,4910773.203125,614340.9375,4940000&bgcolor=0xAAAAAA
Reducing maxy:
http://localhost:8080/geoserver/wms?HEIGHT=552&WIDTH=800&LAYERS=sf%3Adem&STYLES=&SRS=EPSG%3A26713&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=584669.0625,4910773.203125,614340.9375,4920000&bgcolor=0xAAAAAA
http://localhost:8080/geoserver/wms?HEIGHT=552&WIDTH=800&LAYERS=sf%3Adem&STYLES=&SRS=EPSG%3A26713&FORMAT=application/pdf&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=584669.0625,4910773.203125,614340.9375,4920000&bgcolor=0xAAAAAA
Yes, in this case the coverage is not drawn, but I don’t see why…
PDF is generated running exactly the same code as PNG output against
a graphics context provided by iText… so it seems like a bug in how
iText handles raster drawings (in particular, raster + an affine
transform, which is what is happening in the code).
Can you open a jira issue about this?
Cheers
Andrea