Konrad Hafen

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 30 total)
  • Author
    Posts
  • November 12, 2020 at 3:50 pm #7404

    The course covers how to load both vector and raster files.

    August 7, 2020 at 9:42 am #3190

    self reply: just add ‘self.’ in front of the variable to make it shareable between functions

    July 16, 2020 at 12:14 pm #3134

    Thanks. It’s fixed now

    June 29, 2020 at 4:39 pm #3121

    There qgis and gdal functions for slope and aspect. There is a saga function for flow accumulation (and maybe TWI). You can calculate TWI with slope and flow accumulation using the raster calculator. For information on how to use the saga algorithms, follow instructions in the ‘Algorithm List and Help’ to look up how to use the algorithms you’re interested in.

    June 29, 2020 at 4:28 pm #3119

    You’re only going to have access to tools that are native to qgis. If you want to use code from a third-party plugin you will need to implement that yourself. Most third party plugins have open source code, so you should be able to find the code and reuse it.

    June 19, 2020 at 3:56 am #3105

    You can try it with your current installation and see if it works. But the standalone install may not have all the resources you need for plugin development.

    June 18, 2020 at 3:29 pm #3104

    Glad you were able to get it worked out!

    June 16, 2020 at 3:49 pm #3098

    Tif format should still work. Can you add it to QGIS without any problems?
    Are you able to download the zip file from the link provided below the video? I just tried the link and it appears to be working.

    June 16, 2020 at 3:46 pm #3097

    Glad you were able to get it working!

    May 10, 2020 at 2:53 am #2977

    Sorry for my slow reply. It looks like you should be able to open the plugin in QGIS. The problem seems to be with creating the documentation. I’m not exactly sure what it is. If the plugin isn’t working let me know. Otherwise, you should be okay.

    April 14, 2020 at 1:51 pm #2960

    Each of the plugins we have created in this course is separate. What you are showing on the screen is native to QGIS. The native tools are not the same as plugins. With a plugin you generally only have one dialog box. You can create a dialog box that has multiple tabs to run different tools (https://doc.qt.io/qt-5/qtabwidget.html). I’m sure it’s also possible to create a plugin that has drop down options to open different tools. You would just need to create different dialogs and link them to the appropriate actions. However, if you’re doing this it might be be easier to manage the code and for users to understand if you created multiple plugins.

    If you already have multiple plugins, you can add them to a custom menu on the menu bar so they are all available from the same place (maybe this is what you are asking?). More information is available in this post https://gis.stackexchange.com/questions/169869/adding-multiple-plugins-to-custom-menu-in-qgis.

    April 1, 2020 at 5:30 am #2923

    Are you starting VS Code using the batch file you created? You need to start VS code with the batch file or it won’t recognize the qgis packages.

    February 19, 2020 at 3:46 am #2851

    Did you install QGIS using the OSGEO4W network installer? If you’re using Windows check this path C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OSGeo4W and see if you a have shortcut to Qt Designer with QGIS Custom Widgets. It should have been installed automatically with QGIS.

    If you don’t have the shortcut installed, you should still be able to open Qt Designer with the QGIS custom widgets using the batch file. It is located (for Windows) at C:\OSGeo4W64\bin\qgis-designer.bat. Run this file (double-click) and it should open Designed with the custom widgets.

    Let me know if you still have problems.

    February 12, 2020 at 12:56 am #2758

    Awesome! Glad to see you’re jumping into the open source GIS world. It sounds like you’re already well on your way with QGIS and Python. I’m putting together another course about the PyQGIS API that I hope to have done by the end of February. If you’re interested, I will put out an announcement to email subscribers when it’s up.

    February 12, 2020 at 12:52 am #2757

    Hi David,
    That’s a great question, and I don’t know if I have a great answer. I haven’t done much with processing plugins myself. My first suggestion is to review the information in the QGIS Developer Cookbook about processing plugins (if you haven’t already) https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/processing.html. This gives a pretty good description of why you would want a processing plugin instead of a standard plugin. If you decide you need/want a processing plugin (which it sounds like you do) I would start with the processing plugin and build the UI into the processing plugin.

    My reasoning for this is that the processing plugins still launch a UI that allows the user to interact with the changeable parameters of the algorithm, but standard plugins do not give you some of the features (described in the link above) that you may want from a processing plugin. Like I said, I haven’t done much with processing plugins so there’s a chance you could be limited on UI functionality, but my guess is you’ll probably be okay.

    Thanks for taking the course, and I hope this answer helps a little bit!

Viewing 15 posts - 16 through 30 (of 30 total)