Re: [Qgis-user] Custom preset format page for print layouts

2022-01-02 Thread Christophe Besuchet
Hi Thomas, Thanks a bunch for your answer and your code. It works like a charm! However, I'm really bad at coding and I'm not sure why some lines are commented; since your code works without uncommenting these lines, can you tell me what's their purpose? Cheers, Golok > On 2 Jan 2022, at

Re: [Qgis-user] Custom preset format page for print layouts

2022-01-02 Thread Thomas Gratier
Hi, Hope the following will be more understandable from a non-coder # Below tell you how many entries (QgsPageSize) are already present (A4, A3, ...) before print(len(pageSizeRegistry.entries())) # To inspect content of first entry (was useful to understand was is present in each QgsPageSize)

Re: [Qgis-user] Custom preset format page for print layouts

2022-01-02 Thread Thomas Gratier
Hi, In startup.py, add the following to register your custom Custom preset format page for print layouts. from qgis.core import QgsApplication, QgsPageSize, QgsLayoutSize, QgsUnitTypes pageSizeRegistry = QgsApplication.pageSizeRegistry() # For demo purpose in PyQGIS, so commented #

[Qgis-user] Disassemble GPX files

2022-01-02 Thread APM
Dear Qgis-user, I have a lot of gpx-files, which contain several tracks each. Is it possible to disassemble this files in several files in a batch, which contain only one track each? The file name should be the tag of the track. I use a Linux system with a self compiled Qgis 3.20. But

Re: [Qgis-user] Wrong area count QGIS 3.20+?

2022-01-02 Thread Sadowski Jarosław
Sebastian, thank you very much for your precise answer and materials sent - I have read them carefully. So, as far as I can understand, QGIS has moved in version 3.20 to a new way of counting areas (other libraries? GRASS algorithm instead of Geographic lib? I have actually noticed a