Functions common to different types of geometry
Functions for the polygon layer
Using the add point tool at the point of clicking with the mouse button on the map you can create a point feature.
To add a point, enter the edit mode of the vector point layer, then select the point option from the editing tool in the right panel. Select the place on the map where the point is to be located and click the left mouse button. The point was added and displayed as a record in the attribute table. Save in the upper left corner of the attribute table by clicking the floppy disk icon. We are finished editing the layer. The point is displayed on the map.
Draw Line is used to create lines defined by mouse clicks.
To add a line, enter the edit mode of the vector line layer, then select the line option from the editing tool in the right panel. Click on the map to create the line vertex. Double-click the mouse button to finish drawing. The line has been added and displays as a record in the attribute table. Save in the upper left corner of the attribute table by clicking the floppy disk icon. We are finished editing the layer. The line is displayed on the map.
Adding polygons is used to create polygons defined by mouse clicks.
To add a polygon, enter the editing mode of the vector polygon layer, then select the area option from the editing tool in the right panel. Click on the map to create the vertex of the polygon. By double-clicking the mouse button, you will finish drawing. The polygon has been added and displays as a record in the attribute table. Save in the upper left corner of the attribute table by clicking the floppy disk icon. We are finished editing the layer. The training ground is displayed on the map.
Adding circles is used to create circular objects.
To add a circle, enter the editing mode of the vector polygon layer, then select the circle option from the editing tool in the right panel. Click on the map to create the center of the circle. We set the size of the circle by moving the mouse. Clicking the mouse button will finish drawing. The circle has been added and displays as a record in the attribute table. Save in the upper left corner of the attribute table by clicking the floppy disk icon. We are finished editing the layer. The circle is displayed on the map.
Draw Free Polygon creates polygons that follow the shape of the mouse pointer.
To start drawing a polygon freely, enter the editing mode of the vector polygon layer, then select the freehand drawing option from the editing tool in the right panel.
Click on the map and hold down the mouse button to draw a freehand line, and when done, release the mouse button. The area has been added and displays as a record in the attribute table. Save in the upper left corner of the attribute table by clicking the floppy disk icon. We are finished editing the layer. The facility is displayed on the map.
Deleting objects deletes the selected object.
To delete a selected object, enter the editing mode of the selected vector layer, then select the objects that you want to delete in the attribute table. If we hold down the Ctrl button we can select more than one object. After selecting the objects that we want to delete, click on the option remove selected objects from the editing tool in the right panel. We confirm deletion. The selected features have been removed from the attribute table and map. We are finished editing the layer.
Move object moves the selected object to the selected place on the map.
To move an object, enter the editing mode of the selected vector layer. We choose the option to move objects from the editing tool in the right panel. With the Shift key we select the object or objects that we want to move. Click on the map and hold down the mouse button to move, and when done, release the mouse button. Save in the upper left corner of the attribute table by clicking the floppy disk icon. We are finished editing the layer. The object has been moved.
Thanks to this, we will avoid „holes” between successive facilities (eg municipalities) that should be adjacent to each other. It’s almost impossible to precisely snap two objects on a layer without first turning on snapping.
To enable the snapping options, enter the editing mode of any vector layer, then select the snap to layer option from the editing tool in the right panel. We choose the layer we want to attract and enter the snap range. We save. When starting to draw a new object, we are attracted to the selected layer.
Joining geometry joins the geometry of multiple records into a single record.
To join geometry, select the option to join geometry from the editing tool in the right panel. The geometry will be combined for all records in the layer. We select the layer to join the geometry. We name the new layer and confirm. The layer has been added.
Copying data from another layer
To copy data from another layer, select the layer to which you want to copy data from another layer in the layer tree. Then choose the option copy data from another layer from the editing tool in the right pane. We choose the layer from which we want to copy the data. If we only want geometry, check this option. By default, we copy the data contained in the attribute table together with the geometry of the object. We can only choose the same type of layer. Successful copying.
Checks if the currently edited layer is valid
To use „Layer validation” you first need to start editing desired layer. After you’ve entered editing mode head to „Edit” tab (pencil icon) where you’ll find „Layer validation” tool.
Upon clicking the tool an window will pop up with information if current layer and it’s objects (rows) are valid.
How does it work?
This method checks if layers (and it’s objects) parameters are conformant with OGC rules.
Read more about it at: https://postgis.net/docs/ST_IsValid.html