[Users] How to print vectors?
Tim Heuer
HeuerT at landcareresearch.co.nz
Mon Apr 4 06:19:59 CEST 2011
Great, good to know that! Thanks.
From: Matt Priour [mailto:mpriour at kestrelcomputer.com]
Sent: Monday, 4 April 2011 2:02 p.m.
To: Tim Heuer; Robert Buckley; users at geoext.org
Subject: Re: [Users] How to print vectors?
You are fortunately wrong, Tim.
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.
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.
Matt Priour
Kestrel Computer Consulting
From: Tim Heuer<mailto:HeuerT at landcareresearch.co.nz>
Sent: Sunday, April 03, 2011 5:45 PM
To: Robert Buckley<mailto:robertdbuckley at yahoo.com> ; users at geoext.org<mailto:users at geoext.org>
Subject: Re: [Users] How to print vectors?
Hi Robert,
Assuming you use the mapfish print module, I can explain why the vector layers on the map are not printed:
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.
You can however print vector WMS by letting the print module request an SVG instead of raster tiles.
Good luck,
Tim
From: users-bounces at geoext.org [mailto:users-bounces at geoext.org] On Behalf Of Robert Buckley
Sent: Sunday, 3 April 2011 8:26 p.m.
To: users at geoext.org
Subject: [Users] How to print vectors?
Hi,
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?
thanks,
Robert
________________________________
Please consider the environment before printing this email
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.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
________________________________
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
________________________________
Please consider the environment before printing this email
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.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110404/5966934c/attachment-0001.htm
More information about the Users
mailing list