Coder Social home page Coder Social logo

qgis_quickprint's Introduction

QGIS QuickPrint Plugin

The QGIS QuickPrint plug-in provides a simple way to quickly create a pdf from the map as shown in the map pane. The map is not just a screenshot, but a real map with a title, subtitle, scalebar, date, attribution and remarks.

In this way you get a decent print without the hassle of setting up and using print templates.

You can choose between A3 and A4 paper sizes and between portrait and landscape paper orientation.

Via the settings you can change font and font size, date formatting and add a logo to the map. A default attribution and remark can also be set. This is explained in the help.

Please refer to metadata.txt for source code repository and bug tracking.

qgis_quickprint's People

Contributors

deduikertjes avatar marcoduiker avatar rduivenvoorde avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

qgis_quickprint's Issues

Feature Request: ANSI Paper Sizes

I'd love to be able to use this plugin with common/standard ANSI paper sizes, much like the two A_ paper sizes you've included.

Is this possible?

Thanks!

Scale bar in English units

My project distance units are set to feet.
Is it possible to either turn off the scale bar or have the scale drawn in English rather than metric units?

Uncaught AttributeError: module 'os' has no attribute 'startfile'

Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "/Users/florin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickPrint/quick_print3.py", line 533, in run
    os.startfile(self.dlg.pdfFileNameBox.displayText())
AttributeError: module 'os' has no attribute 'startfile'

QuickPrint 3.6.0, QGIS 3.4.5-Madeira on Darwin 19.6.0

Wait cursor

After clicking the save button a wait cursor should appear.

question about aligning map items

Great code, it is helping me come up with a print layout for my project.

One thing I am trying to do is align map items to the bottom of the map of my layout. In my case I would like to align the bottom of my legend with the bottom of the map border in my layout.

Do you have any idea how to do this? I have tried to set the reference point to the bottom left, but I cannot get it to to work for some reason. I also tried getting the height of my legend, ex: legend.sizeWithUnits().height()

but for some reason it only is able to print out the height after the map is exported. I was hoping to add the height of the legend item and add to it the margin between the bottom border of the map and the bottom of the page to set the correct height of the legend (assuming the reference point is the top left); but I cannot get this to work. Any help is appreciated.

Legend in the map

It would be very useful to have a simple legend in the map that includes active layers (or a selection of them)

Help fails to open

Working in QGIS 2.14.15 with Windows 10, I click on Help, and there is no response, no help page opens.

Uncaught NameError: global name 'item' is not defined

Steps to reproduce

  1. First - klick Button
  2. Second - Browse to save path
  3. Third - klick Button Save
Traceback (most recent call last):
  File "C:/Users/USER/.qgis2/python/plugins\QuickPrint\quickprint.py", line 216, in run
    item.setStyle('Numeric')
NameError: global name 'item' is not defined

QuickPrint 0.4, QGIS 2.14.20-Essen on Windows 10

the North arrow is missing

Very useful qgis plug-in !
It just misses the North arrow so that the map created respects all the cartography rules

messageBar().pushMessage signature changed

Hi,
using QGis 2.99.0-Master 6c64c5a586 there is an error on line :
self.iface.messageBar().pushMessage("Info", "Saved as pdf: %s" % self.dlg.pdfFileNameBox.displayText() ,self.iface.messageBar().INFO)
QgsMessageBar' object has no attribute 'INFO'

It seems that message level is now defined in Qgis class :

void QgsMessageBar::pushMessage | ( | const QString & | text, Qgis::MessageLevel level = Qgis::Info,
int duration = 5 )

Actions en Toolbars are not removed when reloading/updating

When you upgrade the plugin the old actions/toolbars are not removed.

Seems like something is going wrong as the clean up of the plugins is being done in:

https://github.com/MarcoDuiker/QGIS_QuickPrint/blob/master/quick_print3.py#L200

via the actions in self.actions, but that only works when you CREATE those action via the add_action method:
https://github.com/MarcoDuiker/QGIS_QuickPrint/blob/master/quick_print3.py#L105

If you create your actions/toolbars yourself, you are also responsible for the cleanup.

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.