The geometry tool is an easy to use tool that allows you to add the following geometry values to points, lines, and polygons:
- Point: The
XCOORD
andYCOORD
columns will contain the x and y coordinates of the point - Line: The
SHAPE_LEN
column will contain the length of the record's line(s) - Polygon: The
AREA
andPERIMETER
columns will contain the area and perimeter of the record's polygon(s)
To access this, go to Vector |
Geometry Tools
| Add Geometry Attributes
.
In the Add Geometry Attributes
window, set the Input layer
to be processed by either selecting it from the drop-down list or clicking on the browse button and navigating to the file.
To save the output, click on the browse button at the end of the Add Geometry Attributes
textbox and choose to save to file (where you can set the vector file type and give it a name). Save to GeoPackage
or write the data to a PostGIS
database if you have one set up.
Click on the Run
button to start the Add Geometry...