[Mapserver-users] Render a WMS layer to a PDF file using PHP Mapscript?

Stephen Clark stephen.clark@focus.ca
Mon, 10 Nov 2003 14:51:34 -0800


Hi all:

Has anyone been able to render a WMS layer to a PDF file using php
mapscript?

In reference:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapscriptPDF


At this stage:
$img = $map->draw();
$url = $img->saveWebImage?(MS_PNG, 0, 0, 0);



I get the following error:

Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named
'trimphoto'. in C:\Program Files\Apache
Group\Apache2\htdocs\nebcdemo-11_make_quick_pdf01.php on line 179

Warning: [MapServer Error]: msDrawRaster(): Unrecognized or unsupported
image format in C:\Program Files\Apache
Group\Apache2\htdocs\nebcdemo-11_make_quick_pdf01.php on line 179

Warning: [MapServer Error]: drawEPP(): EPPL7 support is not available. in
C:\Program Files\Apache
Group\Apache2\htdocs\nebcdemo-11_make_quick_pdf01.php on line 179
finished rendering image ...

Fatal error: Call to a member function on a non-object in C:\Program
Files\Apache Group\Apache2\htdocs\nebcdemo-11_make_quick_pdf01.php on line
181


Any thoughts?

thanks
Stephen

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users