Antwort: [mapserver-dev] PDF support wrap up...

Steve Lime Steve.Lime at dnr.state.mn.us
Thu Jan 22 12:23:43 EST 2009


Can folks post links to samples? From the various messages it looks like this will never be
a process for the faint of heart, so documenting setups that work in a PDF how-to would
be a very good thing.

Steve

>>> On 1/22/2009 at 2:49 AM, in message
<OFD76AD6AD.4746756E-ONC1257546.002C92A9-C1257546.00306F26 at hydrotec.de>,
<umn-ms at hydrotec.de> wrote:
>>  Do you do any labeling with Mapserver?  If so, any problems with 
>> label placement?
> Sorry. I don't see your point . Label placement works like always... (?)
> 
>> What is the typical size (pixels/lines) of the PNG?
> Important point. 
> * Papersize A4(210mm x 297mm ) and A3(297mm x 420mm)
> * Maps cover about 80% of the Paper
> * 150DPI
> 
> -> Approx 1,700,000 pixels for A4 and 3,400,000 pixels for A3.
> 
> We'd like to generate bigger Maps: More dpi, bigger papersizes.
> Problem is not Mapserver but the PDF-Generator. (Runs out of memory).
> 
> In the case, that the generated pics become to large for mapserver,
> one could use tiles. But this would not solve the memory-problem of the
> PDF-generator. 
> 
>> Where is the Mapserver-generated PNG integrated into the 
>> output document?
> This is done by the Apache-FOP. 
> 
>> How do you ensure the PNG is rendered to a specific scale (e.g. 
> 1:50,000)?
> The program controls the extent of the Map (in Meters).
> The program controls the size of the image in the PDF (in mm).
> -> Control over the scale.
> 
> Bye,
> Benedikt Rothe
> 
> Brent Fraser <bfraser at geoanalytic.com> schrieb am 21.01.2009 17:38:28:
> 
>> Benedikt,
>> 
>>   I've got a few questions...
>> 
>> umn-ms at hydrotec.de wrote:
>> > 
>> > In some apps we create PDF with Java, XSLT an Apache/FOP.
>> > * Spatial and non-spatial Data in relational Database
>> > * Mapserver: Creates PNG-Map from Database
>> 
>> Do you do any labeling with Mapserver?  If so, any problems with 
>> label placement?
>> 
>> What is the typical size (pixels/lines) of the PNG?
>> 
>> > * Java: Create XML from Database
>> > * XSLT: Create XSL-FO from XML (links to PNG)
>> 
>> Is this where the Mapserver-generated PNG is integrated into the 
>> output document?
>> 
>> > * Apache-FOP: Create PDF from XML  (embedd PNG)
>> > 
>> > Experience:
>> > + Can tweak layout
>> > + Map with true scale
>> 
>> How do you ensure the PNG is rendered to a specific scale (e.g. 
> 1:50,000)?
>> 
>> 
>> Thanks!
>> Brent Fraser
>> 



More information about the mapserver-dev mailing list