[mapserver-users] High resolution printing [SEC=UNCLASSIFIED]

Roppola, Antti - BRS Antti.Roppola at brs.gov.au
Wed Oct 1 19:26:00 PDT 2008


Hi all,

I wrote large chunks of that howto quite some time ago. :o)

Not included in that document is the really good results I got
using a combination of Mapserver and Latex.

In a nutshell, users selected a series of maps and a Latex batch
called Mapserver to render the $map object as a PDF. This PDF was
then imported into a .tex document so additional text and images
coule be typeset onto the page. The result was a very faithful
reproduction of a hardcopy publication and the linework was razor sharp.

i.e.
Mapfile used to generate PDF snippets:
	IMAGETYPE pdf

Latex then imports these snippets:
	\includegraphics{map.pdf}

The biggest consideration is that you really need to pre-process your
vector
data so that you have suitable range of overviews wih different vertex
densities.
This is because every vertex gets embedded in the PDF (if you see all of
a 10 Mb
Shapefile, all 10 Mb get embedded in the PDF!).

The overhead of Latex also meant that batch processing was the only
realistic option.
This wasn't too bad, the user got an email a few minutes later.

No, I didn't look at layered PDFs. However there's a lot more vector art
manipulation
tools about than there was when I did this work.

You could also look at Apache Coccoon. It's effectively an XML
transformer pipeline, so
you could (theoretically) take XML/GML/SVG and send it to any serializer
supported by
Cocoon, including PDF. Cocoon is a pretty heavy investment though.

http://cocoon.apache.org/2.1/userdocs/svg-serializer.html
http://cocoon.apache.org/2.1/userdocs/pdf-serializer.html
http://cocoon.apache.org/2.1/userdocs/svgxml-serializer.html
http://surguy.net/articles/client-side-svg.xml
http://svgopen.org/2003/papers/DatabaseDrivenSVGMapswithApacheCocoon/ind
ex.html

Cheers,

Antti 

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: Thursday, 2 October 2008 12:32 PM
To: Florin A.
Cc: mapserver-users
Subject: Re: [mapserver-users] High resolution printing

Posting this link for a 2nd time on this thread ;)

http://mapserver.gis.umn.edu/docs/howto/pdf-output

Florin A. wrote:
> I imagine that having a layered PDF as the output would be quite
beneficial.
> Does anybody know if layered PDF output is possible from mapserver?
> 
> 
> On Wed, Oct 1, 2008 at 3:03 PM, Armin Burger <armin.burger at gmx.net>
wrote:
>> Milo
>>
>> Depending on the purpose, you could check if Mapyrus is useful for
you.
>> Disadvantage is that you need to define the map layout a second time 
>> and make it look similar to Mapserver layout. But the PDF output 
>> quality is far better than the one of Mapserver, and you do not need 
>> to bother with PDFLib licenses. And it's also working well for large 
>> print formats (vector based rendering of vector data).
>>
>> Armin
>>
>> On 30/09/2008 18:26, Milo van der Linden wrote:
>>> Hello list!
>>>
>>> I have been searching the web for tips and tricks, but basically 
>>> what I need is a method or procedure or (commercial) tool that can 
>>> enhance my mapserver installation to enable high resolution
printing.
>>>
>>> What I am looking for is the best practice to:
>>>
>>> - Add a button to our website
>>> - Let the button start a script or program that processes the active

>>> layers in the map view based upon the current extent
>>> - Generate a mixture of high-res images and optionally svg or alike 
>>> for linework
>>> - combine the works in a pdf
>>> - present the pdf for download to the user
>>>
>>> I would also like to know if there are any commercial, mapserver 
>>> based, solutions for this. I am also willing to hire an expert to
achieve this.
>>>
>>> Any ideas?
>>>
>>> Kind regards,
>>>
>>> Milo van der Linden
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

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


------
IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain sensitive and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. 

Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF 

------




More information about the MapServer-users mailing list