<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content=text/html;charset=utf-8>
<META content="MSHTML 6.00.6002.18357" name=GENERATOR>
<STYLE><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></STYLE>
</HEAD>
<BODY lang=EN-NZ id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" vLink=purple
link=blue leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Arial size=2>You are fortunately wrong, Tim.</FONT></DIV>
<DIV><FONT face=Arial size=2>The current version of the print module in
Geoserver or the most recent stable release of Mapfish print module do allow
printing of vector layers.</FONT></DIV>
<DIV><FONT face=Arial size=2>The vector features are serialized to GeoJSON with
some additional attributes and metadata for styles, etc.. The Mapfish print
module prints them into the final PDF with no problem. The one current
limitation is that labels are only supported for point features.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Matt Priour</FONT></DIV>
<DIV><FONT face=Arial size=2>Kestrel Computer Consulting</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A
title="mailto:HeuerT@landcareresearch.co.nz CTRL + Click to follow link"
href="mailto:HeuerT@landcareresearch.co.nz">Tim Heuer</A> </DIV>
<DIV><B>Sent:</B> Sunday, April 03, 2011 5:45 PM</DIV>
<DIV><B>To:</B> <A
title="mailto:robertdbuckley@yahoo.com CTRL + Click to follow link"
href="mailto:robertdbuckley@yahoo.com">Robert Buckley</A> ; <A
title=users@geoext.org href="mailto:users@geoext.org">users@geoext.org</A>
</DIV>
<DIV><B>Subject:</B> Re: [Users] How to print vectors?</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hi
Robert,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Assuming
you use the mapfish print module, I can explain why the vector layers on the map
are not printed:<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Currently,
the print module only supports printing layers that come through a WMS, such as
MapServer. By hitting the “print” button in the web app, you are initiating a
request to the print module with some parameters, such as an extent, the layers
to be printed and some other text variables, such as title and comment etc.
However, I haven’t seen or come across it sending also a whole vector layer. As
far as I know, this is not implemented. I might be wrong, because I haven’t
checked this in the source code, but I also haven’t seen it in the
documentation.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">You
can however print vector WMS by letting the print module request an SVG instead
of raster tiles.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Good
luck,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Tim<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
users-bounces@geoext.org [mailto:users-bounces@geoext.org] <B>On Behalf Of
</B>Robert Buckley<BR><B>Sent:</B> Sunday, 3 April 2011 8:26 p.m.<BR><B>To:</B>
users@geoext.org<BR><B>Subject:</B> [Users] How to print
vectors?<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: #40007f; FONT-FAMILY: 'Arial','sans-serif'">Hi,<BR><BR>I
am trying to incorporate a print function into my app. The app basically shows a
vector layer and creates a grid, When I try to print the mappanel the vectors
are not present. Can anyone help me understand why and why this is a problem
when printing?<BR><BR>thanks,<BR><BR>Robert<o:p></o:p></SPAN></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: #40007f; FONT-FAMILY: 'Arial','sans-serif'"><o:p> </o:p></SPAN></P></DIV></DIV></DIV><BR>
<HR>
<FONT face=Arial color=green size=1>Please consider the environment before
printing this email<BR>Warning: This electronic message together with any
attachments is confidential. If you receive it in error: (i) you must not read,
use, disclose, copy or retain it; (ii) please contact the sender immediately by
reply email and then delete the emails.<BR>The views expressed in this email may
not be those of Landcare Research New Zealand Limited.
http://www.landcareresearch.co.nz<BR></FONT>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@geoext.org<BR>http://www.geoext.org/cgi-bin/mailman/listinfo/users<BR></BODY></HTML>