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 create a new PostGIS layer and save changes made to it.

Presently, I am connecting Python to PostGIS using psycopg2 but I want to know whether there is any QGIS API function available.

Note: I am able to open an existing PostGIS layer, but I don't know how to create a new one.

share|improve this question

"How to create a postgis PostGIS layer in qgis" > You could have been more clear before! It took time to me to write my first answer (deleted since).

You can have a look on that online workshop and particularly on that section.

I guess you already know the QGIS api doc!

share|improve this answer
Thanks Simo.. and I regret for being not clear to the question. – Ashu Sep 20 '11 at 13:39
Don't worry... Hope the new provided link would be helpful – simo Sep 20 '11 at 13:40

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.