On Mon, Feb 11, 2013 at 10:00 AM, Ragnvald Larsen <Ragnvald.Larsen@anonymised.com> wrote:
Using geoserver version 2.2.4 I am having some issues with the PDF-rendering. This is an example:
http://wms.dirnat.no/geoserver/fjordkatalogen/wms?service=WMS&version=1.1.0&request=GetMap&layers=fjordkatalogen:fjordkatalogen_omrade&styles=&bbox=-77239.0,6448286.0,1103792.72,7940451.0&width=405&height=512&srs=EPSG:32633&format=application/pdf
Hum… odd indeed. Is this a simple line style?
Observation: the code doing the rendering is 99% the same in the two cases, the difference is that instead
of giving the drawing command to a Graphics2D backed by a raster image, we use the Batik library one to
have it write the PDF.
It may be related to line endings and line joins, have you tried configuring those in the SLD to different values?
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
Thanks Andrea,
The SLD code in question is included below my email. It might very well be that the data set itself is has errors. I cannot immediately find any though, but the dataset is admittedly big:
http://wms.dirnat.no/geoserver/fjordkatalogen/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=fjordkatalogen_omrade&outputformat=SHAPE-ZIP
Our services are listed in this map catalog:
http://kartkatalog.dirnat.no/map_catalog_dataset.asp?datasetid=501&download=yes
Cheers!
Ragnvald
<?xml version="1.0" encoding="ISO-8859-1"?>
image/png
#005A00
1
0,5
0
Arial
normal
normal
11
#000000
···
Using geoserver version 2.2.4 I am having some issues with the PDF-rendering. This is an example:
http://wms.dirnat.no/geoserver/fjordkatalogen/wms?service=WMS&version=1.1.0&request=GetMap&layers=fjordkatalogen:fjordkatalogen_omrade&styles=&bbox=-77239.0,6448286.0,1103792.72,7940451.0&width=405&height=512&srs=EPSG:32633&format=application/pdf
Hum… odd indeed. Is this a simple line style?
Observation: the code doing the rendering is 99% the same in the two cases, the difference is that instead
of giving the drawing command to a Graphics2D backed by a raster image, we use the Batik library one to
have it write the PDF.
It may be related to line endings and line joins, have you tried configuring those in the SLD to different values?
Cheers
Andrea
–
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it