Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to do simple demo to our manager with quantum gis. i have buildings from my city with wgs84 projection on postgre sql database and also have non gis table which have who leaves this buildings (people name,surmane,birth date,etc...) my demo is ; select some building with selection tool from qgis and run some sql from non gis table and show how many people leaves in selected buildings? My sql is ready for work but how can i do this scenario with quantum gis?


share|improve this question

The easiest way to do this is to create a join on the database (join buildings and non-spatial data) and display the join in QGIS.

Everything else is much more involved.

share|improve this answer
but simple join dont solve problem because i need group by – JavaMAN Oct 3 '12 at 14:19
Well, you can group by in the join. – underdark Oct 3 '12 at 14:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.