Re: [mapserver-users] High resolution printing
Hi Milo I would also like to know if there are any commercial, mapserver based, solutions for this. Yes ... there is. See www.mapserver.ch and look at the printing section under http://www.mapserver.ch/en/printing.htm In short the system supports: - PDF layouting via CMS (any number of layouts) - Rotated output - Two resolutions: 150 and 300dpi - Output to almost any paper size (over A2 a 64 bit system with at least 8GB memory required) - Printing is done via raster (png, jpeg ...) embedded in a PDF You can test it yourself i.e. on http://waedenswil.mapserver.ch/stadtplan.htm (thir rightmost icon in the app). Mit freundlichem Gruss / Best Regards Flavio Hendry TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.ch Mit freundlichen Gruessen / Kind Regards mailto:[EMAIL PROTECTED] TYDAC AG - http://www.tydac.ch Geographic Information Solutions Luternauweg 12 -- CH-3006 Bern Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
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 [EMAIL PROTECTED] 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] High resolution printing [SEC=UNCLASSIFIED]
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@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
[mapserver-users] High resolution printing
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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] High resolution printing
If you'd like a PHP approach to this problem you can check out the GeoMOOSE project, and our print.php script. It uses GD and FPDF. - Original Message From: Rob McCulley [EMAIL PROTECTED] To: mapserver-users@lists.osgeo.org Sent: Tuesday, September 30, 2008 4:33:37 PM Subject: RE: [mapserver-users] High resolution printing I'm working on the same thing right now. The first option is to generate a high resolution raster image from mapserver and then user reportlab to put that into a .pdf. The problem with this is the file size of the resulting .pdf is large, and the vectors still don't look as good as they could. What I've been working on now is using reportlab and svglib. I create a high resolution .jpg of just the raster layers from mapserver, and then I create an .svg file of the vector layers. I use svglib to convert the .svg file into a reportlab graphics object, and draw that on top of the raster into a .pdf document. The file size is still large, but the vectors look much better. The problem I'm having now is that not all of mapservers labeling options are available to svg output (namely, you can't wrap labels). http://www.reportlab.org/ http://pypi.python.org/pypi/svglib/0.6.0 Rob McCulley GIS Coordinator County of Vermilion River -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brent Fraser Sent: Tuesday, September 30, 2008 3:16 PM To: Milo van der Linden Cc: mapserver-users Subject: Re: [mapserver-users] High resolution printing Milo, It will likely involve several changes to Mapserver's mappdf.c (see http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html) . Brent Fraser 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] High resolution printing
Thanks Stephen. I solved it (crudely) by changing mapserv.exe to mapserv.pdf in my cgi-bin directory. Robert Stephen Woodbridge [EMAIL PROTECTED] 1/10/2008 1:15 p.m. Sounds like you need to issue an HTTP header(s) like: Content-Disposition: filename=mapserver.pdf but, I'm not sure how to do that from mapserver without some additional research. -Steve W Robert Sanson wrote: I am using OpenLayers to formulate the Mapserver request for a PDF map, specifying the output resolution in pixels. I read somewhere that default Mapserver is compiled with up to 4000x4000 pixel images? If you need higher than this, you have to set some variables in the source code and recompile. Anyway, I get a PDF generated, but my problem is that it comes back with a filename of mapserv.exe and my Browser won't recognise it as a PDF. How can I open the PDF in a new window automatically, so I can print it? Thanks, Robert Sanson Dan Little [EMAIL PROTECTED] 1/10/2008 10:42 a.m. If you'd like a PHP approach to this problem you can check out the GeoMOOSE project, and our print.php script. It uses GD and FPDF. - Original Message From: Rob McCulley [EMAIL PROTECTED] To: mapserver-users@lists.osgeo.org Sent: Tuesday, September 30, 2008 4:33:37 PM Subject: RE: [mapserver-users] High resolution printing I'm working on the same thing right now. The first option is to generate a high resolution raster image from mapserver and then user reportlab to put that into a .pdf. The problem with this is the file size of the resulting .pdf is large, and the vectors still don't look as good as they could. What I've been working on now is using reportlab and svglib. I create a high resolution .jpg of just the raster layers from mapserver, and then I create an .svg file of the vector layers. I use svglib to convert the .svg file into a reportlab graphics object, and draw that on top of the raster into a .pdf document. The file size is still large, but the vectors look much better. The problem I'm having now is that not all of mapservers labeling options are available to svg output (namely, you can't wrap labels). http://www.reportlab.org/ http://pypi.python.org/pypi/svglib/0.6.0 Rob McCulley GIS Coordinator County of Vermilion River -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brent Fraser Sent: Tuesday, September 30, 2008 3:16 PM To: Milo van der Linden Cc: mapserver-users Subject: Re: [mapserver-users] High resolution printing Milo, It will likely involve several changes to Mapserver's mappdf.c (see http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html) . Brent Fraser 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive
Re: [mapserver-users] High resolution printing
http://mapserver.gis.umn.edu/docs/howto/pdf-output Robert Sanson wrote: I am using OpenLayers to formulate the Mapserver request for a PDF map, specifying the output resolution in pixels. I read somewhere that default Mapserver is compiled with up to 4000x4000 pixel images? If you need higher than this, you have to set some variables in the source code and recompile. Anyway, I get a PDF generated, but my problem is that it comes back with a filename of mapserv.exe and my Browser won't recognise it as a PDF. How can I open the PDF in a new window automatically, so I can print it? Thanks, Robert Sanson Dan Little [EMAIL PROTECTED] 1/10/2008 10:42 a.m. If you'd like a PHP approach to this problem you can check out the GeoMOOSE project, and our print.php script. It uses GD and FPDF. - Original Message From: Rob McCulley [EMAIL PROTECTED] To: mapserver-users@lists.osgeo.org Sent: Tuesday, September 30, 2008 4:33:37 PM Subject: RE: [mapserver-users] High resolution printing I'm working on the same thing right now. The first option is to generate a high resolution raster image from mapserver and then user reportlab to put that into a .pdf. The problem with this is the file size of the resulting .pdf is large, and the vectors still don't look as good as they could. What I've been working on now is using reportlab and svglib. I create a high resolution .jpg of just the raster layers from mapserver, and then I create an .svg file of the vector layers. I use svglib to convert the .svg file into a reportlab graphics object, and draw that on top of the raster into a .pdf document. The file size is still large, but the vectors look much better. The problem I'm having now is that not all of mapservers labeling options are available to svg output (namely, you can't wrap labels). http://www.reportlab.org/ http://pypi.python.org/pypi/svglib/0.6.0 Rob McCulley GIS Coordinator County of Vermilion River -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brent Fraser Sent: Tuesday, September 30, 2008 3:16 PM To: Milo van der Linden Cc: mapserver-users Subject: Re: [mapserver-users] High resolution printing Milo, It will likely involve several changes to Mapserver's mappdf.c (see http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html) . Brent Fraser 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. -- This message has been scanned for malware by SurfControl plc. www.surfcontrol.com http://www.surfcontrol.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http