How can I export selected features in Processing Modeler?How to export a single feature (line) from multiple...
Borrowing Characters
Why are special aircraft used for the carriers in the united states navy?
Dystopian novel where telepathic humans live under a dome
Why do members of Congress in committee hearings ask witnesses the same question multiple times?
What am I? I am in theaters and computer programs
Citing contemporaneous (interlaced?) preprints
Second-rate spelling
If a set is open, does that imply that it has no boundary points?
How to substitute values from a list into a function?
How can I handle a player who pre-plans arguments about my rulings on RAW?
How can atoms be electrically neutral when there is a difference in the positions of the charges?
Difference between 'stomach' and 'uterus'
When was drinking water recognized as crucial in marathon running?
Did Amazon pay $0 in taxes last year?
Sometimes a banana is just a banana
What is a term for a function that when called repeatedly, has the same effect as calling once?
Forward slip vs side slip
How do I deal with being jealous of my own players?
Misplaced tyre lever - alternatives?
Is there a math equivalent to the conditional ternary operator?
Wrap all numerics in JSON with quotes
Achieving MPPT of a solar panel with LM2596
Rationale to prefer local variables over instance variables?
Detect if page is on experience editor Sitecore 9 via Javascript?
How can I export selected features in Processing Modeler?
How to export a single feature (line) from multiple layers and export to individual layers?Interactive “for each item in … do …” in QGIS?Can't Find the Split selected features with selected line from another layer toolPlugin for fast export selected features from multiple layersSelected features tool don't work in QGIS 2.12Make processing.runalg use only selected featuresRun QGIS Model on selected features only?Processing modeler to update tableExporting selected features to shapefile PyQGISDXF export from QGIS is not exporting all featuresHow to export a single feature (line) from multiple layers and export to individual layers?
This question is a follow up from a suggestion from this thread:
How to export a single feature (line) from multiple layers and export to individual layers?
I'm creating a batch process that selects a line (feature) from a vector layer and saves the selected feature to a child layer containing the name of the parent.
I'm using $length = maximum($length, group_by:= "id") as the expression because I want to select the longest line in each layer.
The question is how do I export only selected features in the Processing Modeler? I can't find a "Export - Save Selected Features As..." option.


qgis vector batch
|
show 5 more comments
This question is a follow up from a suggestion from this thread:
How to export a single feature (line) from multiple layers and export to individual layers?
I'm creating a batch process that selects a line (feature) from a vector layer and saves the selected feature to a child layer containing the name of the parent.
I'm using $length = maximum($length, group_by:= "id") as the expression because I want to select the longest line in each layer.
The question is how do I export only selected features in the Processing Modeler? I can't find a "Export - Save Selected Features As..." option.


qgis vector batch
Couldextract by expressionhelp you? Can't test right now.
– Erik
Jan 18 at 13:36
I'm already using that: $length = maximum($length, group_by:= "id")
– Steffan Clent Davies
Jan 18 at 13:39
What happens when you save the generated output? Also, you use "select" instead of "extract"
– Erik
Jan 18 at 13:42
1
As far as I know, extract by expression should work as it's a tool that works exactly like select by expression but has the ability to write a file as output. If the processing model is more complex and this wouldn't work, can you show the workflow?
– Gabriel C.
Jan 18 at 13:53
1
@AndreSilva, thank you for your work. I can't know how Steffan solved his issue, but I propose the solution of extracting the features, naming the output and saving it when running the model.
– Gabriel De Luca
11 mins ago
|
show 5 more comments
This question is a follow up from a suggestion from this thread:
How to export a single feature (line) from multiple layers and export to individual layers?
I'm creating a batch process that selects a line (feature) from a vector layer and saves the selected feature to a child layer containing the name of the parent.
I'm using $length = maximum($length, group_by:= "id") as the expression because I want to select the longest line in each layer.
The question is how do I export only selected features in the Processing Modeler? I can't find a "Export - Save Selected Features As..." option.


qgis vector batch
This question is a follow up from a suggestion from this thread:
How to export a single feature (line) from multiple layers and export to individual layers?
I'm creating a batch process that selects a line (feature) from a vector layer and saves the selected feature to a child layer containing the name of the parent.
I'm using $length = maximum($length, group_by:= "id") as the expression because I want to select the longest line in each layer.
The question is how do I export only selected features in the Processing Modeler? I can't find a "Export - Save Selected Features As..." option.


qgis vector batch
qgis vector batch
edited Jan 18 at 13:40
Steffan Clent Davies
asked Jan 18 at 13:27
Steffan Clent DaviesSteffan Clent Davies
1706
1706
Couldextract by expressionhelp you? Can't test right now.
– Erik
Jan 18 at 13:36
I'm already using that: $length = maximum($length, group_by:= "id")
– Steffan Clent Davies
Jan 18 at 13:39
What happens when you save the generated output? Also, you use "select" instead of "extract"
– Erik
Jan 18 at 13:42
1
As far as I know, extract by expression should work as it's a tool that works exactly like select by expression but has the ability to write a file as output. If the processing model is more complex and this wouldn't work, can you show the workflow?
– Gabriel C.
Jan 18 at 13:53
1
@AndreSilva, thank you for your work. I can't know how Steffan solved his issue, but I propose the solution of extracting the features, naming the output and saving it when running the model.
– Gabriel De Luca
11 mins ago
|
show 5 more comments
Couldextract by expressionhelp you? Can't test right now.
– Erik
Jan 18 at 13:36
I'm already using that: $length = maximum($length, group_by:= "id")
– Steffan Clent Davies
Jan 18 at 13:39
What happens when you save the generated output? Also, you use "select" instead of "extract"
– Erik
Jan 18 at 13:42
1
As far as I know, extract by expression should work as it's a tool that works exactly like select by expression but has the ability to write a file as output. If the processing model is more complex and this wouldn't work, can you show the workflow?
– Gabriel C.
Jan 18 at 13:53
1
@AndreSilva, thank you for your work. I can't know how Steffan solved his issue, but I propose the solution of extracting the features, naming the output and saving it when running the model.
– Gabriel De Luca
11 mins ago
Could
extract by expression help you? Can't test right now.– Erik
Jan 18 at 13:36
Could
extract by expression help you? Can't test right now.– Erik
Jan 18 at 13:36
I'm already using that: $length = maximum($length, group_by:= "id")
– Steffan Clent Davies
Jan 18 at 13:39
I'm already using that: $length = maximum($length, group_by:= "id")
– Steffan Clent Davies
Jan 18 at 13:39
What happens when you save the generated output? Also, you use "select" instead of "extract"
– Erik
Jan 18 at 13:42
What happens when you save the generated output? Also, you use "select" instead of "extract"
– Erik
Jan 18 at 13:42
1
1
As far as I know, extract by expression should work as it's a tool that works exactly like select by expression but has the ability to write a file as output. If the processing model is more complex and this wouldn't work, can you show the workflow?
– Gabriel C.
Jan 18 at 13:53
As far as I know, extract by expression should work as it's a tool that works exactly like select by expression but has the ability to write a file as output. If the processing model is more complex and this wouldn't work, can you show the workflow?
– Gabriel C.
Jan 18 at 13:53
1
1
@AndreSilva, thank you for your work. I can't know how Steffan solved his issue, but I propose the solution of extracting the features, naming the output and saving it when running the model.
– Gabriel De Luca
11 mins ago
@AndreSilva, thank you for your work. I can't know how Steffan solved his issue, but I propose the solution of extracting the features, naming the output and saving it when running the model.
– Gabriel De Luca
11 mins ago
|
show 5 more comments
1 Answer
1
active
oldest
votes
To export features from expression in the modeler, first you need to Extract features by expression instead of select them.
In the modeler algorithm, you can define a named output.
Output generated by an algorithm are handled a bit differently when the algorithm is used as a part of a model. Instead of selecting the filepath where you want to save each output, you just have to specify if that ouput is an intermediate layer (and you do not want it to be preserved after the model has been executed), or it is a final one.
When layers are not a final result, you should just leave the corresponding field. Otherwise, you have to enter a name that will be used to identify the layer in the parameters dialog that will be shown when you run the model later.
Source: https://docs.qgis.org/testing/en/docs/training_manual/processing/modeler_twi.html#starting-with-the-graphical-modeler
When you run the model, you can define to write the named output to a file (instead a temporary file) and load it to the canvas or not.
Welcome to the 3k+ rep users group in GIS SE. Now, you can cast close and reopen votes.
– Andre Silva
3 mins ago
add a comment |
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%2f309137%2fhow-can-i-export-selected-features-in-processing-modeler%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
To export features from expression in the modeler, first you need to Extract features by expression instead of select them.
In the modeler algorithm, you can define a named output.
Output generated by an algorithm are handled a bit differently when the algorithm is used as a part of a model. Instead of selecting the filepath where you want to save each output, you just have to specify if that ouput is an intermediate layer (and you do not want it to be preserved after the model has been executed), or it is a final one.
When layers are not a final result, you should just leave the corresponding field. Otherwise, you have to enter a name that will be used to identify the layer in the parameters dialog that will be shown when you run the model later.
Source: https://docs.qgis.org/testing/en/docs/training_manual/processing/modeler_twi.html#starting-with-the-graphical-modeler
When you run the model, you can define to write the named output to a file (instead a temporary file) and load it to the canvas or not.
Welcome to the 3k+ rep users group in GIS SE. Now, you can cast close and reopen votes.
– Andre Silva
3 mins ago
add a comment |
To export features from expression in the modeler, first you need to Extract features by expression instead of select them.
In the modeler algorithm, you can define a named output.
Output generated by an algorithm are handled a bit differently when the algorithm is used as a part of a model. Instead of selecting the filepath where you want to save each output, you just have to specify if that ouput is an intermediate layer (and you do not want it to be preserved after the model has been executed), or it is a final one.
When layers are not a final result, you should just leave the corresponding field. Otherwise, you have to enter a name that will be used to identify the layer in the parameters dialog that will be shown when you run the model later.
Source: https://docs.qgis.org/testing/en/docs/training_manual/processing/modeler_twi.html#starting-with-the-graphical-modeler
When you run the model, you can define to write the named output to a file (instead a temporary file) and load it to the canvas or not.
Welcome to the 3k+ rep users group in GIS SE. Now, you can cast close and reopen votes.
– Andre Silva
3 mins ago
add a comment |
To export features from expression in the modeler, first you need to Extract features by expression instead of select them.
In the modeler algorithm, you can define a named output.
Output generated by an algorithm are handled a bit differently when the algorithm is used as a part of a model. Instead of selecting the filepath where you want to save each output, you just have to specify if that ouput is an intermediate layer (and you do not want it to be preserved after the model has been executed), or it is a final one.
When layers are not a final result, you should just leave the corresponding field. Otherwise, you have to enter a name that will be used to identify the layer in the parameters dialog that will be shown when you run the model later.
Source: https://docs.qgis.org/testing/en/docs/training_manual/processing/modeler_twi.html#starting-with-the-graphical-modeler
When you run the model, you can define to write the named output to a file (instead a temporary file) and load it to the canvas or not.
To export features from expression in the modeler, first you need to Extract features by expression instead of select them.
In the modeler algorithm, you can define a named output.
Output generated by an algorithm are handled a bit differently when the algorithm is used as a part of a model. Instead of selecting the filepath where you want to save each output, you just have to specify if that ouput is an intermediate layer (and you do not want it to be preserved after the model has been executed), or it is a final one.
When layers are not a final result, you should just leave the corresponding field. Otherwise, you have to enter a name that will be used to identify the layer in the parameters dialog that will be shown when you run the model later.
Source: https://docs.qgis.org/testing/en/docs/training_manual/processing/modeler_twi.html#starting-with-the-graphical-modeler
When you run the model, you can define to write the named output to a file (instead a temporary file) and load it to the canvas or not.
answered 15 mins ago
Gabriel De LucaGabriel De Luca
3,003216
3,003216
Welcome to the 3k+ rep users group in GIS SE. Now, you can cast close and reopen votes.
– Andre Silva
3 mins ago
add a comment |
Welcome to the 3k+ rep users group in GIS SE. Now, you can cast close and reopen votes.
– Andre Silva
3 mins ago
Welcome to the 3k+ rep users group in GIS SE. Now, you can cast close and reopen votes.
– Andre Silva
3 mins ago
Welcome to the 3k+ rep users group in GIS SE. Now, you can cast close and reopen votes.
– Andre Silva
3 mins ago
add a comment |
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%2f309137%2fhow-can-i-export-selected-features-in-processing-modeler%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
Could
extract by expressionhelp you? Can't test right now.– Erik
Jan 18 at 13:36
I'm already using that: $length = maximum($length, group_by:= "id")
– Steffan Clent Davies
Jan 18 at 13:39
What happens when you save the generated output? Also, you use "select" instead of "extract"
– Erik
Jan 18 at 13:42
1
As far as I know, extract by expression should work as it's a tool that works exactly like select by expression but has the ability to write a file as output. If the processing model is more complex and this wouldn't work, can you show the workflow?
– Gabriel C.
Jan 18 at 13:53
1
@AndreSilva, thank you for your work. I can't know how Steffan solved his issue, but I propose the solution of extracting the features, naming the output and saving it when running the model.
– Gabriel De Luca
11 mins ago