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 Sent: Sunday, April 03, 2011 5:45 PM To: Robert Buckley ; [email protected] 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: [email protected] [mailto:[email protected]] On Behalf Of Robert Buckley Sent: Sunday, 3 April 2011 8:26 p.m. To: [email protected] 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 [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
