Geospatial – News

MapFish Print version 3.0: presentation

10 November 2015

MapFish print is a Java Web application, developed in Java, and its goal is to generate maps in PDF format and in different image formats (PNG for instance). It consists of a print server, a client side (there is a GeoExt and an AngularJS plugin) and finally an exchange protocol between the client and server sides. The configuration information is thus recovered in the client part and the selected printing is triggered on the server side.

print_example_map_only

The client side, JavaScript, offers different graphic interfaces for sending the print request. It is possible to display a simple form or a form with more configuration options (choice of model, map rotation, etc.). The server side is configured via a configuration file in text format (yaml). This file describes the available printing templates, the WMTS services that can be printed and other configuration parameters.

Up to version 2.x, the models were either fully configured manually via the configuration file in yaml or by using a background map in PDF format and then the dynamic elements (the map, the date, title, scale and legend for example) were set, always via the configuration file in yaml format.

In addition, version 2.0 also allowed to only print out a map, images and text blocks (dynamic or not as the title, comments, date, address) or a scoreboard. When developing version 2.x, this fit our needs and allowed to create quality PDF.

However, since the needs of our customers evolve, we resumed work to simplify the configuration of the application and to provide other features (graphic creation for example, several different cards on the same page).

print_example_multimaps

This new version therefore provides a new method of configuration, simpler, which replaces the old version. Indeed, we have relied on the motor Jasper Studio to configure the print templates. There is always a configuration file in yaml format, but it is now much simpler and focuses on defining models (Jasper files to be used, the parameters to send to the Jasper engine).

print_jaspert_ui

Also, the Jasper Engine Studio provides new opportunities for data representation. There are always text blocks, images, maps and legend, but also other blocks such as graphics!

print_jaspert_chart

Finally, it is possible to extend the capabilities of the print engine through plugins. Also note that the old API is still managed for better backward compatibility, but we advise you to migrate to the new.

For more information, all related presentations and documentation are available on the official website:

Other example:

Legend:

Print_exemple_legende

 

Hinterlassen Sie einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.