Output layer is pre-filled with in-memory input layer

Description

When I select an in-memory layer and open a tool, for example the Buffer tool the output layer name isn't filled in and I need to put something in it even though I selected to create an in-memory shapefile.

This is confusion.
A fix would be to use the name of the layer of the in-memory input layer to suggest a name for the output layer. Currently this isn't working because the file name of the input layer is used, which is empty for in-memory layers.

Environment

None

Activity

Show:
Paul Meems
November 26, 2015, 3:53 PM

Works good now.

Sergei Leschinsky
November 22, 2015, 4:27 PM

A fix is committed. Another issue that in-memory layers produce is that we don't know the folder to save results to (when no 'memory layer' flag is set for output). So by default the outputs will be saved to the current directory which isn't a good thing in my opinion. Therefore I added checks to make sure that output paths are always rooted, both in single execution and batch mode. Also I added code to handle invalid characters in the path (we had exception there).

Done

Assignee

Sergei Leschinsky

Reporter

Paul Meems

Labels

Fix versions

Affects versions

Priority

Low