Sunday, 21 January 2018

qgis - How to add features to a PostGIS layer using Quantum GIS?


I am using Quantum GIS and the PostGIS dbms. I am able to call the PostGIS layer into QGIS but i am unable to add feature to it. I am using the method of adding features to a Shapefile but still it is not getting reflected in the layer, and I don't know how to save it to the PostGIS database if I am able to add the feature to the PostGIS layer.


I may not have used some technical term for this problem because i don't know what to call it, I am expressing the problem in my own terms.



Answer



The general workflow looks like this:



If you don't have a suitable PostGIS table yet, use PostGIS Manager - Create Table to start one.


enter image description here


Then:



  1. Load the PostGIS table into the project.

  2. Enable editing.

  3. Draw some features.

  4. Disable editing or click the "save edits" button to commit your features to the database.


(Of course you need the rights to edit the table.)



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...