Adding & Editing Features¶
With your PostGIS layer successfully connected in QGIS, you can now start adding and editing features directly from your map. This allows you to capture new spatial data (such as points, lines, or polygons) and store it instantly in your hosted database.
Before adding new points, you may want to add a basemap (such as OpenStreetMap or Google Satellite) to provide visual context and help you position your features accurately on the map.
Step 1: Enable Editing Mode¶
To begin adding new features to your places layer:
-
In the Layers Panel, select the places layer.
-
Click the Toggle Editing button (pencil icon) on the toolbar.
-
Once editing is enabled, the layer becomes editable, and additional editing tools become available.
Step 2: Add a New Feature¶
With editing mode active, you can now add a new point to represent a specific place.
-
Click the Add Point Feature tool (map marker icon) from the Digitizing Toolbar.
-
Click on the map at the location where you’d like to place your new feature.
-
An Attribute Form will appear, prompting you to fill in the attribute fields for the new record.
-
Enter the relevant information, then click OK.
Step 3: Save Your Edits¶
Once you’ve added your new points:
-
Click the Toggle Editing button again to exit editing mode.
-
QGIS will prompt you to save your changes, click Save.
Your new features are now stored in your hosted PostGIS database.
Step 4: Verify in pgAdmin¶
To confirm that your new features have been successfully added:
-
Return to pgAdmin and expand your kartoza_postgis database.
-
Select the places table.
-
Click the All Rows button from the toolbar.
-
The new features you added in QGIS should now appear in the data view.
You’ve now learned how to create, edit, and verify spatial features directly within QGIS and pgAdmin.
Next up: Learn how to create lookup tables and define relationships between your PostGIS tables for cleaner, more structured data management.