mapfish-print

A component of MapFish for printing templated cartographic maps. This module is the Java serverside module. For support post to the mailing list: https://groups.google.com/forum/#!forum/mapfish-print-users

Github星跟踪图

Please read the documentation available here:
http://mapfish.github.io/mapfish-print/

For support or questions post on the mailing list:
https://groups.google.com/forum/#!forum/mapfish-print-users

Prerequisites

Building mapfish-print requires java 8 and gradle 5.5.1.

Build

Execute the following command():

.. code::

./gradlew build

This will build three artifacts: print-servlet-xxx.war, print-lib.jar, print-standalone.jar

The build also builds the documentation in the docs/build/site folder. To deploy the documentation it
should simply be copied to the gh-pages branch and then committed GitHub will automatically build the
updated site at: http://mapfish.github.io/mapfish-print/

If you only want to build the docs simply run

.. code::

./gradlew docs:build

or run build in the docs directory

.. note::

The test (part of the build) requires the 'Liberation Sans' font, witch can be downloaded
here <https://www.fontsquirrel.com/fonts/Liberation-Sans>_.

Deploy

The following command will build and upload all artifacts to the maven central repository.

.. code::

./gradlew uploadArchives -DsshPassphrase=...

You can as well generate a docker image using this command:

.. code::

./gradlew createDocker

To use in Eclipse

Create Eclipse project metadata:

.. code::

./gradlew eclipse

Import project into Eclipse

Run from commandline

The following command will run the mapfish printer. The arguments must be supplied to the -PprintArgs="..."
parameter.

To list all the commandline options then execute (the current direstory is ./core):

.. code::

./gradlew print -PprintArgs="-help"

.. code::

./gradlew print -PprintArgs="-config ../examples/src/test/resources/examples/simple/config.yaml -spec ../examples/src/test/resources/examples/simple/requestData.json -output ./output.pdf"

If you want to run in debug mode you can do the following:

.. code::

./gradlew print --debug-jvm -PprintArgs="-config ../examples/src/test/resources/examples/simple/config.yaml -spec ../examples/src/test/resources/examples/simple/requestData.json -output ./output.pdf"

Run using gretty/jettyRun

The following command will run mapfish print using gretty/jetty. The default port is 8080, but can be
changed using -PhttpPort="..." parameter.

.. code::

./gradlew jettyRun -PhttpPort=8090

Run in Eclipse

  • Create new Java Run Configuration
  • Main class is org.mapfish.print.cli.Main
  • Program arguments: -config samples/config.yaml -spec samples/spec.json -output $HOME/print.pdf

Contributor License Agreement

Before accepting a contribution, we ask that you provide us a Contributor License Agreement.
If you are making your contribution as part of work for your employer, please follow the
guidelines on submitting a Corporate Contributor License Agreement <https://github.com/mapfish/mapfish-print/wiki/C2C_Corporate-CLA_v1-0.pdf>.
If you are making your contribution as an individual, you can submit a digital
Individual Contributor License Agreement <http://goo.gl/forms/QO9UELxM9m>
.

Credits

.. image:: https://www.yourkit.com/images/yklogo.png
:target: https://www.yourkit.com/java/profiler/index.jsp

Thanks to YourKit <https://www.yourkit.com/java/profiler/index.jsp>_ for letting
us use their Java profiler!

主要指标

概览
名称与所有者mapfish/mapfish-print
主编程语言Java
编程语言Java (语言数: 11)
平台
许可证BSD 2-Clause "Simplified" License
所有者活动
创建于2011-11-08 22:24:04
推送于2025-06-09 17:45:42
最后一次提交2025-06-03 15:34:50
发布数166
最新版本名称3.32.0 (发布于 2025-06-03 14:51:24)
第一版名称1.2-GEORCHESTRA (发布于 )
用户参与
星数187
关注者数19
派生数415
提交数4.9k
已启用问题?
问题数427
打开的问题数189
拉请求数2761
打开的拉请求数15
关闭的拉请求数439
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?