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?
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
add a comment |
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
add a comment |
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
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
qgis-3 geoprocessing-script
edited 4 mins ago
underdark♦
68.3k13177342
68.3k13177342
asked 1 hour ago
outforawhileoutforawhile
1515
1515
add a comment |
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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