Hi
we are using GeoServer’s pdf output option to generate high quality pdf-maps (we just put some title, north arrow and frame around it with a small servlet). Filling polygons with a raster image gives me some headache: Sometimes some polygons are not filled with the raster image [1]. This only happens when setting transparent=true. They are filled when using transparent=false [2]. The same polygon is filled by changing the bounding box [3]. Please note the color of the stripes of the left polygon in [2] (should be the same as in the right polygon).
It occurs with shapefiles and postgis data and with GeoServer 1.5.4, 1.6.4b and the latest trunk version.
I was looking into the PDFMapProducer class but wasn’t able to see something special. Probably it’s an iText related problem? Any help etc. is appreciated!
[1] http://www.john-longo.org/geo/true.pdf
[2] http://www.john-longo.org/geo/false.pdf
[3] http://www.john-longo.org/geo/true2.pdf
regards
Stefan
Mit freundlichem Gruss
Stefan Ziegler
Leiter Aufsicht
Kanton Solothurn
Bau- und Justizdepartement
Amt für Geoinformation
Rötistrasse 4
4501 Solothurn
Telefon 032 627 75 96
Telefax 032 627 75 98
stefan.ziegler@anonymised.com
http://www.so.ch
Ziegler Stefan ha scritto:
Hi
we are using GeoServer's pdf output option to generate high quality pdf-maps (we just put some title, north arrow and frame around it with a small servlet). Filling polygons with a raster image gives me some headache: Sometimes some polygons are not filled with the raster image [1]. This only happens when setting transparent=true. They are filled when using transparent=false [2]. The same polygon is filled by changing the bounding box [3]. Please note the color of the stripes of the left polygon in [2] (should be the same as in the right polygon).
It occurs with shapefiles and postgis data and with GeoServer 1.5.4, 1.6.4b and the latest trunk version.
I was looking into the PDFMapProducer class but wasn't able to see something special. Probably it's an iText related problem? Any help etc. is appreciated!
[1] http://www.john-longo.org/geo/true.pdf
[2] http://www.john-longo.org/geo/false.pdf
[3] http://www.john-longo.org/geo/true2.pdf
Indeed it seems an issue with iText, as far as I remember we just
render PDF as we render any other image format, and iText does the
work of translating our java2d calls into a pdf output.
Maybe try your chance by upgrading iText? I believe GeoServer is
using a pretty old version, 2.0.6, whilst the latest is 2.1.3
Cheers
Andrea