underdarkGIS’s avatarunderdarkGIS’s Twitter Archive—№ 10,317

      1. I've been toying around with the idea of a PyQGIS intro for non-programmers without all the boring parts of vanilla Python tutorials. Not sure how far this will go, but it's a start: anitagraser.com/projects/pyqgis-101-introduction-to-qgis-python-programming-for-non-programmers/
    1. …in reply to @underdarkGIS
      Thank you all for your feedback and encouragement! I've updated the existing chapters and added a new one anitagraser.com/projects/pyqgis-101-introduction-to-qgis-python-programming-for-non-programmers/
  1. …in reply to @underdarkGIS
    1. …in reply to @underdarkGIS
      Interesting to see requests for a motivation section that justifies why learning #python is worthwhile. I thought we were beyond that point. #QGIS #gistribe
      1. …in reply to @underdarkGIS
        Good general "why python" article by @pythonbeginners @pythonbeginners/1030069052734091266?s=19 #pyqgis101
      2. …in reply to @underdarkGIS
        1. …in reply to @underdarkGIS
          The raster chapter also includes the first if statement example. Next up: probably how to call a Processing tool
          1. …in reply to @underdarkGIS
            Turns out using Processing tools in #PyQGIS requires basic Python dictionary knowledge. Another building block down anitagraser.com/pyqgis-101-introduction-to-qgis-python-programming-for-non-programmers/pyqgis-101-running-processing-tools/
            1. …in reply to @underdarkGIS
              Learn how to export maps to PDF using #Python in the latest example of #PyQGIS101 anitagraser.com/pyqgis-101-introduction-to-qgis-python-programming-for-non-programmers/pyqgis-101-exporting-layouts/ #QGIS
              1. …in reply to @underdarkGIS
                This is the first example that touches on oop inheritance. Know a good resource explaining the concept, ideally with python examples? Let me know! #pyqgis101
                1. …in reply to @underdarkGIS
                  Realized I had comments disabled on the last couple of #PyQGIS101 examples. That wasn't on purpose.
                  1. …in reply to @underdarkGIS
                    1. …in reply to @underdarkGIS
                      Due to popular demand: chaining #QGIS Processing tools to create more complex workflows in #Python anitagraser.com/pyqgis-101-introduction-to-qgis-python-programming-for-non-programmers/pyqgis101-chaining-processing-tools/ #PyQGIS101
                      1. …in reply to @underdarkGIS
                        1. …in reply to @underdarkGIS
                          1. …in reply to @underdarkGIS
                            Next up in #PyQGIS101 will be aggregate expressions
                            1. …in reply to @underdarkGIS
                              #PyQGIS101 part 12 with newly integrated instructions for aggregate expressions: anitagraser.com/pyqgis-101-introduction-to-qgis-python-programming-for-non-programmers/pyqgis-101-using-expressions-to-compute-new-field-values/ also includes improved information about expression scopes (kudos to @nyalldawson for helping with the implementation details!)
                              1. …in reply to @underdarkGIS
                                @nyalldawson It's finally here: The first #PyQGIS101 tutorial for Processing scripts! anitagraser.com/pyqgis-101-introduction-to-qgis-python-programming-for-non-programmers/pyqgis-101-writing-a-processing-script/ (It includes #QGIS 3.4 support so it's a bit verbose but I didn't want to leave LTR users behind.)
                                1. …in reply to @underdarkGIS
                                  I've cleaned it up a bit more. The resulting minimum working Processing script is now 57 lines long (while using line breaks generously)
                                  1. …in reply to @underdarkGIS
                                    Jumping right into Processing scripts skipped a couple of important #PyQGIS101 topics. Therefore, the latest tutorial discusses writing #Python functions and how they can make your code reusable: anitagraser.com/pyqgis-101-introduction-to-qgis-python-programming-for-non-programmers/pyqgis-101-creating-functions-to-load-geopackage-layers/ #GISChat
                                    1. …in reply to @underdarkGIS
                                      1. …in reply to @underdarkGIS
                                        1. …in reply to @underdarkGIS
                                          For those of you looking for more Python reading: Springer has opened access to their beginners link.springer.com/openurl?genre=book&isbn=978-3-030-20290-3 & advanced guide link.springer.com/openurl?genre=book&isbn=978-3-030-25943-3 to #Python 3
                        2. …in reply to @underdarkGIS
                          If you want to learn advanced #PyQGIS stuff, follow @nyalldawson on GIS.SE gis.stackexchange.com/users/28443/ndawson?tab=answers, bit random of course, but awesome nonetheless! #qgis #gischat
                      2. …in reply to @underdarkGIS
                        Comments are open now. *Wonder why they're always off by default for pages* 🤔🙄