2

I'm using QGIS 2.10 and DB Manager plugin.

I regularly use this plugin to display tables from a PostgreSQL - PostGIS database. I particularly use the integrated SQL Window to filter a table's content with a SQL query. Then, in order to display the query's result in the QGIS map canvas, it is asked to specify Column with unique integer value and Geometry column (see screenshot below). These parameters are automatically filled with a column name and I have to change the values to gid and the_geom each time I use this...

Is there a way to specify default values for these parameters, as gid and the_geom are always the columns to be used for every table in my database?

enter image description here

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Jun 27, 2016 at 13:52

1 Answer 1

2

Just tried QGIS 2.14.4 and DB Manager seems to keep in memory last field names selected for Column with unique values and Geometry column parameters!

The solution is simple then: upgrade!

answered Jul 19, 2016 at 11:25

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.