Re: [Qgis-user] Python Scripts (Boolean) in QGIS 3
Thanks Stefan, I´ll take a look and try some new scripts De: Stefan Giese (WhereGroup) Enviado: terça-feira, 12 de março de 2019 10:05 Para: Herbert Lincon Cc: qgis-user@lists.osgeo.org Assunto: Re: [Qgis-user] Python Scripts (Boolean) in QGIS 3 Hi Herbert, with processing scripts ist has defintitly changed a lot. The thing is, that in QGIS 2.18 it was python but mixed with some none python, like the parameter with the double pound sign...like ##my_parameter=boolean so a good starting point is the blog from Anita Graser, since the documetation on qgis.org isn't that actual at the moment: https://anitagraser.com/2018/03/25/processing-script-template-for-qgis3/ you can also start with the template directly in QGIS selecting "New script from template.." in the processing toolbox top, where the python icon is... Hope this helps a bit Stefan --- Mit freundlichen Grüßen Stefan Giese Projektleiter/Consultant FOSS Academy Kompaktkurs "Winterschule 2019" Grundwissen zum Aufbau von Geodateninfrastrukturen mit Open-Source-Software https://foss-academy.com/kompaktkurse WhereGroup GmbH & Co. KG Schwimmbadstr. 2 79100 Freiburg Germany Fon: +49 (0)761 / 519 102 - 61 Fax: +49 (0)761 / 519 102 - 11 stefan.gi...@wheregroup.com www.wheregroup.com<http://www.wheregroup.com> Amtsgericht Bonn, HRA 6788 --- Komplementärin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm --- Am 2019-03-12 13:48, schrieb Herbert Lincon: > Hello everyone, > > I have a script in QGIS 2.18 to receive the information from 4 > boolean options as simple as that > > ##formula_1=boolean > > ##formula_2=boolean > > ##formula_3=boolean > > ##formula_4=boolean > > ##result=output string > > if formula_1 == True: > > result= 1 > > elif formula_2 == True: > > result= 2 > > elif formula_3 == True: > > result= 3 > > elif formula_4 == True: > > result= 4 > > else: > result= 5 > > the problem is, this type of script doesn´t work in QGIS 3, and I´m > a newbie in Python, > could someone translate that to the new method? > > it´ll help me even begin to understand python 3 > > Thanks > Herbert Lincon > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Python Scripts (Boolean) in QGIS 3
Hello everyone, I have a script in QGIS 2.18 to receive the information from 4 boolean options as simple as that ##formula_1=boolean ##formula_2=boolean ##formula_3=boolean ##formula_4=boolean ##result=output string if formula_1 == True: result= 1 elif formula_2 == True: result= 2 elif formula_3 == True: result= 3 elif formula_4 == True: result= 4 else: result= 5 the problem is, this type of script doesn´t work in QGIS 3, and I´m a newbie in Python, could someone translate that to the new method? it´ll help me even begin to understand python 3 Thanks Herbert Lincon ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS-Kerning-Errors?
Hello Mike, I got this error too on 2.18.23 and 3.4.5, using another tags and Tahoma. I could not find the problem source, but I suspect the DPI of the compositor, maybe in your actual DPI there is no valid pixel to fit the letters at their right place. I find out that the sizes you put in the HTML, regardless the unit of measurement, the size of everything will change based on the DPI as well Hope this helps Herbert Lincon De: Qgis-user em nome de Elstermann, Mike Enviado: terça-feira, 5 de março de 2019 07:30 Para: 'Qgis-user@lists.osgeo.org' Assunto: [Qgis-user] QGIS-Kerning-Errors? Hello, everybody, When I use mass text with different markups (font attributes) over HTML text, kerning errors occur especially with small but necessary font sizes, i.e. the spacing becomes incorrect. The screenshot [1] should illustrate this. It is simple HTML (on the right). The errors occur equally in QGIS 2.14 and 3.2. Does anyone have an idea or a workaround? What other possibilities are there for mass text with different attributes? Here is the test HTML: August-Hermann-Francke August-Hermann-Francke August-Hermann-Francke August-Hermann-Francke August-Hermann-Francke August-Hermann-Francke August-Hermann-Francke August-Hermann-Francke Thanks, mikeE. [1] … http://www.geoobserver.de/QGIS-Kerning-Error_1.png ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS 3.4.5 Column Type
Yes Bernd, by shape I mean ESRI shape file, what I forgot to say, is that at QGIS 2.18.23 it works perfectly but I´ll give a try to those formats Thanks __ Herbert Lincon R. A. dos Santos De: Qgis-user em nome de Bernd Vogelgesang Enviado: quarta-feira, 6 de março de 2019 14:42 Para: qgis-user@lists.osgeo.org Assunto: Re: [Qgis-user] QGIS 3.4.5 Column Type Do you mean with shape that you use a ESRI shape file? I have no deep knowledge of all this field stuff, but maybe shapefiles do not support this? Maybe try with a SpatiaLite or Geopackage layer. Cheers, Bernd Am 06.03.19 um 18:35 schrieb Herbert Lincon: Hello everyone, I just migrated from QGIS 2.18.23 to 3.4.5 because of the long term release, and now, at 3.4.5, at the Refactor Fields, when I select a Integer64 field the output shape has a int8 field instead, and it´s interpreted as a string when ordering de values. Someone knows something about? thanks for the attention __ Herbert Lincon R. A. dos Santos ___ Qgis-user mailing list Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] QGIS 3.4.5 Column Type
Hello everyone, I just migrated from QGIS 2.18.23 to 3.4.5 because of the long term release, and now, at 3.4.5, at the Refactor Fields, when I select a Integer64 field the output shape has a int8 field instead, and it´s interpreted as a string when ordering de values. Someone knows something about? thanks for the attention __ Herbert Lincon R. A. dos Santos ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] QGIS - HTML
Hello Andreas, Thanks for the help, at work I develop some map canvas for the other users on the company, in those maps, there are some labels that need to be edited in each map. for now, the users select that label, go to properties and edit the content text with the HTML, I would like that the user could edit the label directly clicking on it, it would be faster and intuitive __ Herbert Lincon R. A. dos Santos De: Andreas Neumann Enviado: quarta-feira, 7 de novembro de 2018 05:28 Para: Herbert Lincon Assunto: Re: [Qgis-user] QGIS - HTML Hi Herbert, I am not 100% sure - but the HTML frame in the QGIS print composer is not for interactive HTML. Yes - you can have an onload javascript (e.g. to create HTML content) - but it is not meant to be a full browser, but to print out existing or generated HTML content. It is not meant to be interactive, e.g. with forms and such. What are you trying to achieve? What is your use case with this form content in QGIS print composer? Andreas On 2018-11-06 22:15, Herbert Lincon wrote: Hello, I´m using QGIS 2.18.23, in the composer, I added a HTML frame with the TAG, like the print attached but, the fieldset is not clickable, the same happens with the TAG could someone help or explain this? Thanks for the atention this is the code used Contact __ Herbert Lincon R. A. dos Santos ___ Qgis-user mailing list Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] QGIS - HTML
Hello, I´m using QGIS 2.18.23, in the composer, I added a HTML frame with the TAG, like the print attached but, the fieldset is not clickable, the same happens with the TAG could someone help or explain this? Thanks for the atention this is the code used Contact __ Herbert Lincon R. A. dos Santos ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user