Giter Club home page Giter Club logo

processingpdf's Introduction

Processing PDF

This repo contains a prototype algorithm for the QGIS processing framework allowing to export PDFs.

It works by taking following inputs :

  • a QGIS project (current project if nothing specified)
  • the layout name (the layout that you want to output)
  • a list of template layers (layers from the project that are to be replaced - as a comma separated list of layers ids)
  • a list of override layers (layers that will replace the template layers - must match the count and order)
  • an output folder (the place where outputs will be stored)

Installation

Install as a QGIS python plugin.

This requires QGIS 3.3 including with following patch (not merged yet) : qgis/QGIS#7864

Usage

Run (or batch run) the new Export to PDF algorithm.

Sample project

A sample project containing a processing model that uses the PDF exporter is included.

To use, open the project in QGIS 3.3, and run the RiskTools/Flood on buildings algorithm. Use the buildings layer and one of the rasters from the data folder as inputs. You can run it in batch.

Known issues

Roadmap

Prototype :

  • Support other type of exports (atlas, image, ...)
  • Allow to define some variables to be used in the composer (for example to display a scenario name)
  • Explore using layouts files (.qpt) instead of QgsProjects, would probably require some "project builders" helper algorithms
  • See if/how we can embed project files in processing models, to provide "self contained" PDF generators
  • See if it's possible to use the custom widgets in the graphical modeler too
  • ...

Long term:

  • see if the concept can be enlarged so that Export as PDF becomes just be one of several other helper algorithms (such as append/prepend/override layer, add layouts, export PDF, etc.), which probably would require having a new QGIS project parameter type in processing
  • bring this in QGIS core (as python)
  • once stabilized, eventually port to C++
  • ...

References

See discussion on the mailing list : https://lists.osgeo.org/pipermail/qgis-developer/2018-September/054424.html

processingpdf's People

Contributors

olivierdalang avatar

Stargazers

Worth Lutz avatar

Watchers

James Cloos avatar  avatar  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.