mapserv - output pdf

Andrew Huang ahuang at GEOANALYTIC.COM
Thu Aug 18 14:09:41 EDT 2005


Hi everyone,

I'm having a problem using mapserv to output a pdf file.
I using query_string from the dos commandline and the following is what I type:

C:\development\MapServer\MapServer\v4.6.0\20050616_official\mapserver-4.6.0\andrewtest>mapserv QUERY_STRING="MAP=test.map&VERSION=1.1.1
&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:26711&LAYERS=LVL1,LVL2,LVL3,LVL4&WIDTH=1024&HEIGHT=1024&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vn
d.ogc.se.xml&FORMAT=application/x-pdf" >test.pdf

It comes out with an error saying that the format is unsupported - here is the output:
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="InvalidFormat">
msWMSLoadGetMapParams(): Image handling error. Unsupported output format (application/x-pdf).
</ServiceException>
</ServiceExceptionReport>

I've compiled mapserv to use pdflib, and it works when i use shp2img to create a pdf file, but I'd like to get it to work using WMS.

Can anyone help?

Thanks,

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/f2d3f4ba/attachment.html


More information about the mapserver-users mailing list