[mapserver-users] Large scale PDF output on Windows
Hello everybody, dear Mr Anderson, on the web I found your post regarding pdf-output to scale: http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055586.html In your post you said you would supply the php-code. I'm currently working om a similar project, where I need a pdf-output to scale. Therefore I would be highly interested in your code. Would you be willing to share it. Kind regards Helmut ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Large scale PDF output on Windows
Brent, If there's enough interest, I'd be willing to contribute the code changes he made if there's a Mapserver developer/committer willing to review, upgrade them to v5,and test (and it may require an RFC as there was a map file addition to OUTPUTFORMAT/FORMATOPTIONS, I think). I would be willing to review/apply patches on this. I have created a bug on this http://trac.osgeo.org/mapserver/ticket/2596. Best Regards Brent Fraser Kristian Thy wrote: On Thu, Apr 24, Flavio Hendry wrote: Discussed the issue a while ago with Frank Warmerdam. He had less problems on a LINUX System running on a 64bit machine (he supposes it could go as high as 25'000 pixels). On Windows 32 it bangs at around 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. Thanks to advice from the list, I now have huge orthophoto pdfs. But now I have another problem - using png output, I get nice 24 bit images, but my pdf output is dithered 8 bit. The relevant part of my map file: IMAGETYPE png24 OUTPUTFORMAT NAME png MIMETYPE "image/png" DRIVER AGG/PNG EXTENSION png IMAGEMODE RGB TRANSPARENT FALSE END #outputformat OUTPUTFORMAT NAME pdf MIMETYPE "application/x-pdf" DRIVER pdf EXTENSION pdf IMAGEMODE RGB FORMATOPTION "OUTPUT_TYPE=RASTER" TRANSPARENT FALSE END #outputformat Removing the FORMATOPTION makes no difference. http://quovadis.dk/dl/ortho.png http://quovadis.dk/dl/ortho.pdf The commandline incantation used to produce the images: $ shp2img -m ddo.map -o ortho.pdf -s 1654 1169 -l DDO -e 659000 6058000 663200 6060970 -i pdf Does the pdf driver support 24 bit at all? Can I do 24 bit pngs and assemble the pdfs by hand? \\kristian ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: [EMAIL PROTECTED] http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Large scale PDF output on Windows
On Fri, Apr 25, Brent Fraser wrote: > If there's enough interest, I'd be willing to contribute the code changes > he made if there's a Mapserver developer/committer willing to review, > upgrade them to v5,and test (and it may require an RFC as there was a map > file addition to OUTPUTFORMAT/FORMATOPTIONS, I think). I am very interested in your patch, and would certainly back enabling 24 bit pdf output. \\kristian -- ... et nemo ex vobis interrogat me: »Quo vadis?« ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Large scale PDF output on Windows
Kristian (and all), Back in 2005 I challenged one of our new engineers to create a 34 inch by 44 inch PDF map (with a graticule!) of a satellite image using Mapserver (v4.6). There were several problems, the most serious in mappdf.c which uses an 8-bit GD library image format restricting the images inserted into the PDF to 8 bit only (although just prior to insertion they're converted to JPEG, a 24-bit format!). One of the other problems was memory usage. Mapserver creates two or three copies of the image when rendering it to PDF (and at 300 dpi an RGB image of that size can be 500 mb). But if your format is smaller than 34 x 44, it may not be a problem. If there's enough interest, I'd be willing to contribute the code changes he made if there's a Mapserver developer/committer willing to review, upgrade them to v5,and test (and it may require an RFC as there was a map file addition to OUTPUTFORMAT/FORMATOPTIONS, I think). Brent Fraser Kristian Thy wrote: On Thu, Apr 24, Flavio Hendry wrote: Discussed the issue a while ago with Frank Warmerdam. He had less problems on a LINUX System running on a 64bit machine (he supposes it could go as high as 25'000 pixels). On Windows 32 it bangs at around 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. Thanks to advice from the list, I now have huge orthophoto pdfs. But now I have another problem - using png output, I get nice 24 bit images, but my pdf output is dithered 8 bit. The relevant part of my map file: IMAGETYPE png24 OUTPUTFORMAT NAME png MIMETYPE "image/png" DRIVER AGG/PNG EXTENSION png IMAGEMODE RGB TRANSPARENT FALSE END #outputformat OUTPUTFORMAT NAME pdf MIMETYPE "application/x-pdf" DRIVER pdf EXTENSION pdf IMAGEMODE RGB FORMATOPTION "OUTPUT_TYPE=RASTER" TRANSPARENT FALSE END #outputformat Removing the FORMATOPTION makes no difference. http://quovadis.dk/dl/ortho.png http://quovadis.dk/dl/ortho.pdf The commandline incantation used to produce the images: $ shp2img -m ddo.map -o ortho.pdf -s 1654 1169 -l DDO -e 659000 6058000 663200 6060970 -i pdf Does the pdf driver support 24 bit at all? Can I do 24 bit pngs and assemble the pdfs by hand? \\kristian ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Large scale PDF output on Windows
On Thu, Apr 24, Flavio Hendry wrote: > Discussed the issue a while ago with Frank Warmerdam. He had less > problems on a LINUX System running on a 64bit machine (he supposes it > could go as high as 25'000 pixels). On Windows 32 it bangs at around > 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. Thanks to advice from the list, I now have huge orthophoto pdfs. But now I have another problem - using png output, I get nice 24 bit images, but my pdf output is dithered 8 bit. The relevant part of my map file: IMAGETYPE png24 OUTPUTFORMAT NAME png MIMETYPE "image/png" DRIVER AGG/PNG EXTENSION png IMAGEMODE RGB TRANSPARENT FALSE END #outputformat OUTPUTFORMAT NAME pdf MIMETYPE "application/x-pdf" DRIVER pdf EXTENSION pdf IMAGEMODE RGB FORMATOPTION "OUTPUT_TYPE=RASTER" TRANSPARENT FALSE END #outputformat Removing the FORMATOPTION makes no difference. http://quovadis.dk/dl/ortho.png http://quovadis.dk/dl/ortho.pdf The commandline incantation used to produce the images: $ shp2img -m ddo.map -o ortho.pdf -s 1654 1169 -l DDO -e 659000 6058000 663200 6060970 -i pdf Does the pdf driver support 24 bit at all? Can I do 24 bit pngs and assemble the pdfs by hand? \\kristian -- ... et nemo ex vobis interrogat me: »Quo vadis?« ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Large scale PDF output on Windows
Carl, I would like to get a copy of this as well. I think this would make a great contribution to the mapserver wiki or a mapserver HowTo if you are willing to contribute it. Thanks, -Steve W Carl Anderson wrote: Maning, We have built a custom system that builds large format maps using UMN Mapserver output as SVG and some extra static template stuff An example can be seen at http://wms.co.fulton.ga.us/apps/custommaps/select_type.php?view_layers=-layer=streets-layer=daccess-layer=hillshade-layer=buildings-layer=current_parcels-layer=subdiv-layer=city_limits-layer=ponds-layer=streams&objectid=xx&xmin=2171270.340465&ymin=1329959.560581&xmax=2191269.791276&ymax=1343188.595973 A different map can be pulled from http://wfs.co.fulton.ga.us/apps/tilemaps/get_tile.php?intile=136101 We are converting the system to be entirely mapserver SVG output based, with the conversion to PDF as the last step. the maps are vector maps and not raster maps so they are less limited by map size. If you want the PHP code that assembles these maps let me know. C. Carl Anderson IS/GIS Manager Fulton County GA, USA maning sambale wrote: hi, Are there any example of WMS with pdf output available over the web? I tried the mumbai map but can't get a pdf output. cheers, maning On Thu, Apr 24, 2008 at 9:01 PM, Flavio Hendry <[EMAIL PROTECTED]> wrote: Hi Bart Discussed the issue a while ago with Frank Warmerdam. He had less problems on a LINUX System running on a 64bit machine (he supposes it could go as high as 25'000 pixels). On Windows 32 it bangs at around 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. 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 ___ 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] Large scale PDF output on Windows
Maning, We have built a custom system that builds large format maps using UMN Mapserver output as SVG and some extra static template stuff An example can be seen at http://wms.co.fulton.ga.us/apps/custommaps/select_type.php?view_layers=-layer=streets-layer=daccess-layer=hillshade-layer=buildings-layer=current_parcels-layer=subdiv-layer=city_limits-layer=ponds-layer=streams&objectid=xx&xmin=2171270.340465&ymin=1329959.560581&xmax=2191269.791276&ymax=1343188.595973 A different map can be pulled from http://wfs.co.fulton.ga.us/apps/tilemaps/get_tile.php?intile=136101 We are converting the system to be entirely mapserver SVG output based, with the conversion to PDF as the last step. the maps are vector maps and not raster maps so they are less limited by map size. If you want the PHP code that assembles these maps let me know. C. Carl Anderson IS/GIS Manager Fulton County GA, USA maning sambale wrote: hi, Are there any example of WMS with pdf output available over the web? I tried the mumbai map but can't get a pdf output. cheers, maning On Thu, Apr 24, 2008 at 9:01 PM, Flavio Hendry <[EMAIL PROTECTED]> wrote: Hi Bart Discussed the issue a while ago with Frank Warmerdam. He had less problems on a LINUX System running on a 64bit machine (he supposes it could go as high as 25'000 pixels). On Windows 32 it bangs at around 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. 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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Large scale PDF output on Windows
hi, Are there any example of WMS with pdf output available over the web? I tried the mumbai map but can't get a pdf output. cheers, maning On Thu, Apr 24, 2008 at 9:01 PM, Flavio Hendry <[EMAIL PROTECTED]> wrote: > Hi Bart > > Discussed the issue a while ago with Frank Warmerdam. He had less > problems on a LINUX System running on a 64bit machine (he supposes it > could go as high as 25'000 pixels). On Windows 32 it bangs at around > 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. > > 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 > -- |-|--| | __.-._ |"Ohhh. Great warrior. Wars not make one great." -Yoda | | '-._"7' |"Freedom is still the most radical idea of all" -N.Branden| | /'.-c |Linux registered user #402901, http://counter.li.org/ | | | /T |http://esambale.wikispaces.com| | _)_/LI |-|--| ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Large scale PDF output on Windows
Hi Bart Discussed the issue a while ago with Frank Warmerdam. He had less problems on a LINUX System running on a 64bit machine (he supposes it could go as high as 25'000 pixels). On Windows 32 it bangs at around 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. 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] Large scale PDF output on Windows
On Wed, Apr 23, [EMAIL PROTECTED] wrote: > There is MAXSIZE for this on the MAP object: Thanks, both of you. Ritual sacrifice has been cancelled. \\kristian -- ... et nemo ex vobis interrogat me: »Quo vadis?« ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Large scale PDF output on Windows
There is MAXSIZE for this on the MAP object: MAXSIZE [integer] Sets the maximum size of the map image. This will override the default value. For example, setting this to 2048 means that you can have up to 2048 pixels in both dimensions (i.e. max of 2048x2048). Wrt resource issues, we have seen Masperver fail (internal server errors) on such big images depending on the dataset. For instance with aerial photography (ECW) I've run into resource issues in the past. Sometimes the limit was a bit below 10.000 pixels, sometimes 15.000 went fine. It all depends how lucky you are :-) Best regards, Bart On Wed, 23 Apr 2008 07:38:24 -0400, Christopher Schmidt <[EMAIL PROTECTED]> wrote: > On Wed, Apr 23, 2008 at 01:30:12PM +0200, Kristian Thy wrote: >> I'm trying to generate pdf output from mapserver to be printed in A3 >> format at 600 dpi (which is not negotiable). We're currently using the >> 5.0.2 binary from ms4w, which has a limitation of 2048 px square. I have >> calculated I need 9921 by 7015 px output. >> >> Before I prostrate myself before the altar and make sacrifices to the >> gods of compiling-mapserver-on-windows, can anybody confirm that output >> of this size is indeed possible? The only thing I can find through >> Google is this post from Ed McNierney - four and a half years old: > > You don't need to recompile anymore. You can change this in a mapfile > setting. (I don't know what it is, I'm sure that someone else will tell > you: but wanted to make sure you got stopped before you started > compiling.) > > And yes, output of that size is possible. I believe that when I was > talking to pagameba, he was talking about rendering on the order of 50 > x 50 256 px tiles -- about 1 by 1 or more. At that point, you > may be limited by memory limits of some kind, depending on your > rendering rules... but someone else can comment on that as well. > > > >> > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00417.html >> >> \\kristian >> -- >> ... et nemo ex vobis interrogat me: »Quo vadis?« >> ___ >> mapserver-users mailing list >> mapserver-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > Christopher Schmidt > MetaCarta > ___ > 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] Large scale PDF output on Windows
On Wed, Apr 23, 2008 at 01:30:12PM +0200, Kristian Thy wrote: > I'm trying to generate pdf output from mapserver to be printed in A3 > format at 600 dpi (which is not negotiable). We're currently using the > 5.0.2 binary from ms4w, which has a limitation of 2048 px square. I have > calculated I need 9921 by 7015 px output. > > Before I prostrate myself before the altar and make sacrifices to the > gods of compiling-mapserver-on-windows, can anybody confirm that output > of this size is indeed possible? The only thing I can find through > Google is this post from Ed McNierney - four and a half years old: You don't need to recompile anymore. You can change this in a mapfile setting. (I don't know what it is, I'm sure that someone else will tell you: but wanted to make sure you got stopped before you started compiling.) And yes, output of that size is possible. I believe that when I was talking to pagameba, he was talking about rendering on the order of 50 x 50 256 px tiles -- about 1 by 1 or more. At that point, you may be limited by memory limits of some kind, depending on your rendering rules... but someone else can comment on that as well. > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00417.html > > \\kristian > -- > ... et nemo ex vobis interrogat me: »Quo vadis?« > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Large scale PDF output on Windows
I'm trying to generate pdf output from mapserver to be printed in A3 format at 600 dpi (which is not negotiable). We're currently using the 5.0.2 binary from ms4w, which has a limitation of 2048 px square. I have calculated I need 9921 by 7015 px output. Before I prostrate myself before the altar and make sacrifices to the gods of compiling-mapserver-on-windows, can anybody confirm that output of this size is indeed possible? The only thing I can find through Google is this post from Ed McNierney - four and a half years old: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00417.html \\kristian -- ... et nemo ex vobis interrogat me: »Quo vadis?« ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users