mapserv - output pdf

Yewondwossen Assefa assefa at DMSOLUTIONS.CA
Thu Aug 18 12:02:31 PDT 2005


Andrew,

  This is a limitation discussed in 
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455.

  It was supposed to be adresssed before the 4.6 release. I will work on 
it in the comming days.

Later,

Andrew Huang wrote:
> 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
>  

-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the MapServer-users mailing list