[mapserver-users] Re: pdf vector output in 6.02

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Mon Apr 23 05:00:38 EDT 2012


Hi,

PDF output of Mapserver 6.0.1 on Linux actually works but it is sensitive to some issues in the source data. It may have something to do with topology errors in polygons but I am not sure. From another place the output is OK

http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=469&HEIGHT=354&LAYERS=default&TRANSPARENT=TRUE&FORMAT=application/x-pdf&BBOX=383512.485926151,6677396.947423564,383910.77553639427,6677697.575402298&SRS=EPSG:3067&STYLES=

-Jukka Rahkonen-

> -----Alkuperäinen viesti-----
> Lähettäjä: mapserver-users-bounces at lists.osgeo.org 
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta frequens
> Lähetetty: 23. huhtikuuta 2012 9:37
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] Re: pdf vector output in 6.02
> 
> Weird.To add a little:
> With 5.6.5 I am able to get a vector pdf using mapserv or shp2img,
> mapscript dies without message.
> With 6.0.2 in all three cases (shp2img, mapserv, mapscript) the pdf
> gets created, yet contains only the rendered raster image of the
> vector layers.
> Why this fallback to raster rendering, is this something supposed to
> happen? All the underlying libraries are the same.
> 
> Any hints?
> 
> BR
> 
> frequens
> 
> On Fri, Apr 20, 2012 at 11:50 PM, frequens <frequens at gmail.com> wrote:
> > Hi all,
> >
> > I am having trouble producing a high quality vector output pdf with
> > 6.02 php mapscript (same trouble using shp2img)
> > Cairo is enabled, the pdf file even gets created, but 
> contains only a
> > raster image?
> >
> > Pdf output is enabled:
> > IMAGETYPE PDF
> >  and
> > OUTPUTFORMAT
> >  NAME "pdf"
> >  DRIVER CAIRO/PDF
> >  MIMETYPE "application/x-pdf"
> >  IMAGEMODE RGB
> >  EXTENSION "pdf"
> > END
> >
> > Since the mapserver documentation on pdf creation is rather archaic,
> > any help (a stripped version of someone's mapfile?) would be
> > appreciated!
> > My cairo library is rather old also: 1.4.10. Might this 
> have any influence?
> >
> > Many thanks in advance,
> >
> > frequens
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


More information about the mapserver-users mailing list