Create a drop-down menu in a QGIS Processing script?How to control rending/layer order of outputs from QGIS...

Why don't you get burned by the wood benches in a sauna?

Sets which are both Sum-free and Product-free.

Build ASCII Podiums

Is Screenshot Time-tracking Common?

How can changes in personality/values of a person who turned into a vampire be explained?

How bad is a Computer Science course that doesn't teach Design Patterns?

Now...where was I?

What happens if both players misunderstand the game state until it's too late?

How do I write a maintainable, fast, compile-time bit-mask in C++?

How can I differentiate duration vs starting time

Can I do anything else with aspersions other than cast them?

What does "don't have a baby" imply or mean in this sentence?

Taking an academic pseudonym?

How many copper coins fit inside a cubic foot?

Why don't programs completely uninstall (remove all their files) when I remove them?

How does holding onto an active but un-used credit card affect your ability to get a loan?

How do I avoid the "chosen hero" feeling?

Why is quixotic not Quixotic (a proper adjective)?

Dot product with a constant

Do the speed limit reductions due to pollution also apply to electric cars in France?

What is the name of this perspective and how is it constructed?

Can you wish for more wishes from an Efreeti bound to service via an Efreeti Bottle?

How can I make my enemies feel real and make combat more engaging?

How Create a list of the first 10,000 digits of Pi and sum it?



Create a drop-down menu in a QGIS Processing script?


How to control rending/layer order of outputs from QGIS 3.0 processing modeler?Running Processing Script crashes QGIS3Load layer in QGIS legend from Processing script [QGIS 3]QgsProcessingException in Processing script QGIS3Getting field index from input vector layer in PyQGIS?Defining fields and adding features to output layer using QGIS?QGIS 3 processing script is recognized as a modelQGIS 3.4.4 Crash on vertex editorNo icons when installing QGIS 3.4.4QGIS 3.4.4 sorts numerical values as text, solution?













0















I'm trying to write a QGIS processing script using the new API (3.4), but I hardly find any documentation. Based on this excellent resource by Anita Graser (https://anitagraser.com/2018/03/25/processing-script-template-for-qgis3/), I could manage to set up a basic script that mostly fits my needs.



But I have some fixed-value (eg: ['walking', 'car']) options for which I'd like to include drop-down menus. I assume that I have to use a QgsProcessingParameterString but using the available documentation, I could'nt figure out how to do it.










share|improve this question





























    0















    I'm trying to write a QGIS processing script using the new API (3.4), but I hardly find any documentation. Based on this excellent resource by Anita Graser (https://anitagraser.com/2018/03/25/processing-script-template-for-qgis3/), I could manage to set up a basic script that mostly fits my needs.



    But I have some fixed-value (eg: ['walking', 'car']) options for which I'd like to include drop-down menus. I assume that I have to use a QgsProcessingParameterString but using the available documentation, I could'nt figure out how to do it.










    share|improve this question



























      0












      0








      0








      I'm trying to write a QGIS processing script using the new API (3.4), but I hardly find any documentation. Based on this excellent resource by Anita Graser (https://anitagraser.com/2018/03/25/processing-script-template-for-qgis3/), I could manage to set up a basic script that mostly fits my needs.



      But I have some fixed-value (eg: ['walking', 'car']) options for which I'd like to include drop-down menus. I assume that I have to use a QgsProcessingParameterString but using the available documentation, I could'nt figure out how to do it.










      share|improve this question
















      I'm trying to write a QGIS processing script using the new API (3.4), but I hardly find any documentation. Based on this excellent resource by Anita Graser (https://anitagraser.com/2018/03/25/processing-script-template-for-qgis3/), I could manage to set up a basic script that mostly fits my needs.



      But I have some fixed-value (eg: ['walking', 'car']) options for which I'd like to include drop-down menus. I assume that I have to use a QgsProcessingParameterString but using the available documentation, I could'nt figure out how to do it.







      qgis-3 geoprocessing-script






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 4 mins ago









      underdark

      68.3k13177342




      68.3k13177342










      asked 1 hour ago









      outforawhileoutforawhile

      1515




      1515






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f313174%2fcreate-a-drop-down-menu-in-a-qgis-processing-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f313174%2fcreate-a-drop-down-menu-in-a-qgis-processing-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          Венесуэла на летних Олимпийских играх 2000 Содержание Состав...

          Meter-Bus Содержание Параметры шины | Стандартизация |...