Mapbender pdf-print with xml/xslt

From MapbenderWiki

Jump to: navigation, search

Contents

Member

How to extend the current mapbender print

There are discussions going on about redesign of the printPDF modul as the current solution isn't easy to configure and to extend.

The new solution could work with xml- and xsl-Files and a WMC Dokument to define the layers for the print.

  • code cleaning
  • more abstract solution with xml/xsl
  • drawing temporary objects and draw them in the print pdf (marc jansen)
  • offer different printlayouts for the user (depending on user, group proivileges) User:Andreas Fischer has a solution
  • userinteraktion for the layout (show print area and change it, put northarrow and move it, move overview, set text)
  • generate jpeg, png or other imagefile with header information
  • define all possible variables in a conf-file, every print layout has it'S own conf-file
  • would be nice if the conf-file can be changed on the fly in the gui - by drag and drop the elements
  • element_var : which style do you want ?
    • Mapframe resizes to the size of the printimage
    • mapframe size does not change - but there is a frame where you can see which extent will be displayed in the print (User: Andreas Fischer has a solution which should be integrated)
  • print with tiles?
  • get higher dpi


How do we start?

  • User: Andreas Fischer tries to integrate the frame solution with element_vars
    • (mapframe1 stays in the original size)
  • User: Marc Jansen integrates the diplay of temporary objects in the print
    • choose color
    • choose with a checkbox wether to take the temorary object to the pdf or not
  • find out about the possibilities of xml and xslt
  • layout should be saved in single files to enable the selection between different layouts


First steps

For the redesign of the mapbender print module we have to resolve some questions.

What?

  • First we have to check which informations / elements / etc. do we need?
    • map
    • scalebar
    • legend
    • temporary elements (measure objects)
    • etc.

How?

  • The next question is the how-to.
  • Some headwords: architecture, relationship between the modules, ...
  • Therefor we have to discuss the advantages of xml, xslt, json or other possibilities
  • It´s necessary for the new module not to hit the assumption of the mapbender philosophy: Independence of the modules
  • For example: User:Sven Böhme involved the print of temporary elements (measure) which Marc Jansen has developed. The problem is that there is a dependence between the measure module and the print module.
Personal tools