Giter VIP home page Giter VIP logo

duncan1987 / mapfish-print Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mapfish/mapfish-print

0.0 0.0 0.0 163.94 MB

A component of MapFish for printing templated cartographic maps. This module is the Java serverside module.

Home Page: http://mapfish.github.io/mapfish-print-doc/

License: BSD 2-Clause "Simplified" License

Shell 0.25% JavaScript 16.66% Scheme 1.48% Python 0.11% Java 80.38% XSLT 0.06% CSS 0.19% Makefile 0.05% HTML 0.59% Batchfile 0.09% Dockerfile 0.15%

mapfish-print's Introduction

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

Camptocamp is providing professional assistance services, open source software maintenance and new feature development for MapFish Print. Please reach us if you have any inquiry, we'd be glad to help. Every income helps float this project.

Prerequisites

Building mapfish-print requires make and Docker.

Build

Execute the following command():

> make 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: https://mapfish.github.io/mapfish-print/

If you only want to build the docs simply run:

> ./gradlew docs:build

or run build in the docs directory.

The test (part of the build) requires the 'Liberation Sans' font, which can be downloaded here.

Auto-reload mode

To be able to quickly test modifications in the print you should:

  • Copy the file docker-compose.override.sample.yaml to docker-compose.override.yaml.
  • Run docker compose up -d, The print will be available on port 8080 and on code modification will be built and trigger a restart.

Create new stabilisation branch

  • Update CHANGELOG.md
  • Create a new branch name x.y from master.
  • Create a new label names backport x.y in the right color (GitHub: Issues->Labels->New Label).
  • Create a tag x.y.0.
  • On the master branch: Update the SECURITY.md file, add a policy for the new and old version.
  • On the master branch update the .github/workflows/rebuild.yaml file by adding the new branch name.
  • On the master branch update the .github/workflows/audit.yaml file by adding the new branch name.

Run from command line

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

To list all the command line options then execute (the current directory is ./core):

> ./gradlew print -PprintArgs="-help"
> ./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:

> ./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"

For the examples that use GeoServer you should run it in the composition, then build and start the composition:

make build
cp docker-compose.override.sample.yaml docker-compose.override.yaml
make acceptance-tests-up

Run the example:

docker-compose exec builder gradle print -PprintArgs="-config /src/examples/src/test/resources/examples/simple/config.yaml -spec /src/examples/src/test/resources/examples/simple/requestData.json -output /src/examples/output.pdf"

To use in Eclipse

Create Eclipse project metadata:

> ./gradlew eclipse

Import project into Eclipse

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. If you are making your contribution as an individual, you can submit a digital Individual Contributor License Agreement.

Credits

image

target

: https://www.yourkit.com/java/profiler/index.jsp

Thanks to YourKit for letting us use their Java profiler!

Published artifacts

Docker

War and jar from version 3.23

War and jar before version 3.23

Releases, including various assets

mapfish-print's People

Contributors

dependabot-preview[bot] avatar sbrunner avatar dependabot[bot] avatar renovate[bot] avatar dependabot-support avatar renovate-bot avatar pvalsecc avatar gberaudo avatar nielscharlier avatar vampouille avatar danduk82 avatar mlechner avatar jwkaltz avatar aymandf avatar didier-coignet-dict avatar hwbllmnn avatar bchapuis avatar andreheinecke avatar ismailsunni avatar marionb avatar dersteppenwolf avatar marcjansen avatar c2c-bot-gis-ci avatar cmangeat avatar ebelo avatar jenselme avatar awaterme avatar aruneko avatar bradh avatar diegomura avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.