New answers tagged query-layer
A new feature just came up in QGIS 2.2 called "Paste as new vector layer": It is a common activity in a GIS to create a sub-selection and then to create a new layer from the selection. In QGIS you can already do save selection as to save a layer from your selection, and now offers functionality that allows you to create a new file or memory layer from ...
Looks like you need to add a PGPORT to the Data Source text box. So the result will look like this:
You could create temporary connection files through a combination of the tempfile module in the Python standard library and the Create Database Connection Geoprocessing tool. Your config file could be read in your script, used to make a temporary connection file, establish your Query Layers, and then delete the connection file.
Top 50 recent answers are included