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

2012-04-23 Thread frequens
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 frequ...@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2012-04-23 Thread Rahkonen Jukka
Hi,

PDF output works for me on Windows (MS4W) but I seem to have problems with 
Linux and Mapserver 6.0.1 also. This one gives HTTP 500 Internal error message 
and on the server side there seems to occur a segfault

http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=469HEIGHT=354LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=385063.18278820685,6671589.90189085,385461.47239845013,6671890.529869583SRS=EPSG:3067STYLES=

Same with SVG output. Png etc. works fine.  I have the same outputformat as you.

-Jukka Rahkonen-

frequens wrote:
 
 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 frequ...@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2012-04-23 Thread thomas bonfort
Can you provide a backtrace ?

--
thomas

On Mon, Apr 23, 2012 at 09:17, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote:
 Hi,

 PDF output works for me on Windows (MS4W) but I seem to have problems with 
 Linux and Mapserver 6.0.1 also. This one gives HTTP 500 Internal error 
 message and on the server side there seems to occur a segfault

 http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=469HEIGHT=354LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=385063.18278820685,6671589.90189085,385461.47239845013,6671890.529869583SRS=EPSG:3067STYLES=

 Same with SVG output. Png etc. works fine.  I have the same outputformat as 
 you.

 -Jukka Rahkonen-

 frequens wrote:

 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 frequ...@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2012-04-23 Thread Havard Tveite

Seems to work here.  I get vector PDF output using 6.0.2 on Debian.

Håvard

On 4/23/2012 9:17 AM, Rahkonen Jukka wrote:

Hi,

PDF output works for me on Windows (MS4W) but I seem to have problems with 
Linux and Mapserver 6.0.1 also. This one gives HTTP 500 Internal error message 
and on the server side there seems to occur a segfault

http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=469HEIGHT=354LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=385063.18278820685,6671589.90189085,385461.47239845013,6671890.529869583SRS=EPSG:3067STYLES=

Same with SVG output. Png etc. works fine.  I have the same outputformat as you.

-Jukka Rahkonen-

frequens wrote:


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, frequensfrequ...@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___

mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



--
Håvard Tveite
Department of Mathematical Sciences and Technology, UMB
Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users