-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathediting.html
166 lines (164 loc) · 12.2 KB
/
editing.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<html>
<head>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-179299301-2');
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Basic Editing</title>
<link rel="stylesheet" type="text/css" href="../css/base_styles.css">
</head>
<body>
<header></header>
<div class="sidenav">
<ul>
<li><a href="..">Home</a></li>
<li><a href="../Basics/" class="active">Basic GIS Operations</a></li>
<li><a href="../Analysis/" >Analysis Toolbox</a></li>
<li><a href="../Conversion/">Conversion Toolbox</a></li>
<li><a href="../Data Management/">Data Management Toolbox</a></li>
<li><a href="../Geocoding/">Geocoding Toolbox</a></li>
<li><a href="../Network Analyst/">Network Analyst Toolbox</a></li>
<li><a href="../Spatial Analyst/">Spatial Analyst Toolbox</a></li>
<li><a href="../Spatial Statistics/">Spatial Statistics Toolbox</a></li>
</ul>
</div>
<div class="content">
<h1>Basic Editing</h1>
<br>
<p>
<a href="#toc">Skip To Table Of Contents</a></br>
<a href="../Basics/basics.html">Back To Basic Concepts</a><br>
<a href="..">Back To Homepage</a><br>
<h3 id="top">How to Enable Editing</h3>
In order to start editing, you first have to select which layer you will be editing.
To do this you simply have to click on the layer's name in the layer list and then turn editing on for that layer.
In the example below the <u>training_main_polygon</u> layer is selected, we can see that by it being underlined. <br>
<br><img src="img/editing_db0.PNG" height=325px width=435px/></br></br>
After selecting the layer you want to edit click on the <b>Toggle editing...</b> button <img src="img/tables_db4.PNG" height=25px width=25px/> which is located on the <u>Digitizing toolbar</u> over here. <br>
<br><img src="img/editing_db1.PNG" height=100px width=450px/></br></br>
If you can't find the <u>Digitizing toolbar</u> you will have to turn it on by right-clicking an empty area of the top toolbars and selecting it from the list. <br>
<br><img src="img/editing_db2.PNG" height=770px width=227px/></br></br>
</p>
<hr>
<h2 id="toc">Now Lets Get To Know The Editing Tools We Have</h2>
<p>
<ol>Basic Editing
<li><a hre="#select">Selecting Features Manually</a></li>
<li><a href="#create">Creating Features</a><br>
2.1 <a href="#popform">Disable The Popup Form</a></li>
<li><a href="#vertices">Editing Vertices</a></li>
<li><a href="#ctrl+">Copy, Paste And Delete</a></li>
</ol>
<ol>Advanced Editing Tools
<li></li>
</ol>
</p>
<a href="../Basics/basics.html">Back To Basic Concepts</a><br>
<a href="..">Back To Homepage</a><br>
<hr>
<h2 id="select">Selecting Features Manually</h2>
<br>
<p>
If you want to select features in a layer manually, meaning wither by selecting them within an area,
or by a location you do not wish to describe by expression, you can perform a manual selection.<br>
You first have to choose which selection method you wish to use, this can done by clicking the little arrow to the right of the selction button:<br>
<br><img src="img/editing_db20.PNG" height=145px width=795px/></br></br>
The default option is to select by clicking or by dragging the mouse and creating a square\rectangle.<br>
Once the tool has been selected all you have to do is click the features you want to select or drag a rectangle around them.
Other options let you create more precise selections, such as by <b>Freehand</b>,
<b>Polygon</b> which requires you to create by adding vertices (points) until you have your wanted polygon and then right-click, or by click and drag <b>Radius</b>.
</br><a href="#toc">Go back to the table of contents</a>
</p>
<hr>
<h2 id="create">Creating Features</h2>
<br>
<p>
<h3>Points</h3>
<p>
Assuming you already toggled editing on the point layer you want create features in.
click the Add Point Feature <img src="img/editing_db10.PNG" height=25px width=25px/> button or use the keyboard shortcut <kbd>Ctrl</kbd>+<kbd style="font-size: 1.15em">.</kbd>(thats point, not comma).
Now all you have to do is simply add the feature where it should be placed.
once the point is added you will have to enter the attributes data, in the form that popped up.
In the example below i only have two fields, an autogenerated id field and a description.
if you don't want to enter all the attributes you can simply close the window by clicking the <kbd class="qgisbtn"> OK </kbd> button.<br>
<br><img src="img/editing_db11.PNG" height=385px width=475px/></br></br>
To make sure your edits are saved click the Save Layer Edits <img src="img/editing_db4.PNG" height=25px width=25px/> button and toggle editing off.
And thats it, creating point data with open source tools.
</p>
</br><a href="#toc">Go back to the table of contents</a><br>
<h3>Lines</h3>
<p>
Assuming you already toggled editing on the polyline layer you want create features in.
click the Add Line Feature <img src="img/editing_db9.PNG" height=25px width=25px/> button or use the keyboard shortcut <kbd>Ctrl</kbd>+<kbd style="font-size: 1.15em">.</kbd>(thats point, not comma).
To start a new line feature click on where you want it to start on the map,<br>
when you finish digitizing your line, right-click to open the attributes form.
if you don't want to enter all the attributes you can simply close the window by clicking the <kbd class="qgisbtn"> OK </kbd> button.<br>
<br><img src="img/editing_db12.PNG" height=385px width=475px/></br></br>
To make sure your edits are saved click the Save Layer Edits <img src="img/editing_db4.PNG" height=25px width=25px/> button and toggle editing off.
And thats it, creating Polyline data with open source tools.
</p>
</br><a href="#toc">Go back to the table of contents</a><br>
<h3>Polygons</h3>
<p> Assuming you already toggled editing on the polygon layer you want create features in.
click the Add Polygon Feature <img src="img/editing_db5.PNG" height=25px width=25px/> button or use the keyboard shortcut <kbd>Ctrl</kbd>+<kbd style="font-size: 1.15em">.</kbd>(thats point, not comma).
To start a new polygon feature click on where you want it to start on the map,<br>
when you finish digitizing your line, right-click to open the attributes form.
if you don't want to enter all the attributes you can simply close the window by clicking the <kbd class="qgisbtn"> OK </kbd> button.<br>
<br><img src="img/editing_db15.PNG" height=385px width=475px/></br></br>
If you have self calculated fields (for example the shapes' length or area) they will be filled out after you close the form.
To make sure your edits are saved click the Save Layer Edits <img src="img/editing_db4.PNG" height=25px width=25px/> button and toggle editing off.
And thats it, creating Polyline data with open source tools.
</p>
</br><a href="#toc">Go back to the table of contents</a><br>
<h3 id="popform">Is The Popup Form Annoying You?</h3>
<p>
Then you can turn it off.<br>
open <b>Settings -> Options</b> and go to the <b>Digitizing</b> tab. <br>
<br><img src="img/editing_db13.PNG" height=185px width=385px/></br></br>
Here you can simply tick ☑ <i>Suppress attributes pop-up windows after each created feature</i> to avoid the form opening.<br>
Another usefull option is ☑ <i>Reuse last entered attribute values</i> to have fields automatically filled at the opening of the form and just have to type changing values.<br>
<br><img src="img/editing_db14.PNG" height=915px width=1035px/></br></br>
You are welcome to explore the other digitizing options here, which let you control the digitizing exprience in QGIS.
</p>
</p>
<hr>
<h2 id="vertices">Editing Vertices</h2>
<br>
<p>
Editing vertices is simmiliar independant of the layer's geometry type,
You have to toggle editing by clicking the <b>Toggle editing...</b> button <img src="img/tables_db4.PNG" height=25px width=25px/>.<br>
Now click the <b>Vertex Tool</b> button <img src="img/editing_db6.PNG" height=25px width=35px/>, you can also decide whether to enable vertex editing on the active layer or on all layers.<br>
<br><img src="img/editing_db16.PNG" height=80px width=440px/></br></br>
After turning the Vertex Tool on you can see a red (or other color if you cahnged it)
when you hover over the layer's lines (<a href="https://en.wikipedia.org/wiki/Glossary_of_graph_theory_terms#edge">edges</a>) and points (<a href="https://en.wikipedia.org/wiki/Glossary_of_graph_theory_terms#vertex">vertices</a>),
This means you can edit them now, it should look something like this:<br>
<br><img src="img/editing_db17.PNG" title="When hovering on lines" height=610px width=930px/></br></br>
<br><img src="img/editing_db18.PNG" title="When hovering on points" height=610px width=930px/></br></br>
Notice that if you hover over the <font size=3>+</font> sign in the middle of an edge it will allow you to create another vertex,
If you want to move an entire edge, click (don't drag) it anywhere except the vertices.
To change the position of an edge or vertex, click it once and then click the location where you want to move it to.
A thin red line will show you the shape after the edit.<br>
<br><img src="img/editing_db19.PNG" title="During the editing process" height=420px width=610px/></br></br>
If you moving point data, the process is simmiliar, except that you moving the entire geometry.<br>
And thats it, Simple and easy to use, and now you know how to do that in Open Source.
</br><a href="#toc">Go back to the table of contents</a>
</p>
<hr>
<h2 id="ctrl+">Copy, Paste And Delete</h2>
<br>
<p>
Just like text in a document you can Copy, Paste and Delete features from a layer, and paste them into another layer.<br>
<b>Copying</b> is done easily, you first have to select the features you want to copy, with any selection method you want, <br>
and the either press <kbd>Ctrl</kbd>+<kbd>C</kbd> or use the <b>Copy Features</b> button <img src="img/tables_button_db6.PNG" height=25px width=25px/>.<br>
<b>Pasting</b> must be done to an editable layer, meaning that you<a href="#top">toggled editing on</a>. <br>
Pasting can be done with either press <kbd>Ctrl</kbd>+<kbd>V</kbd> or use the <b>Paste Features</b> button <img src="img/tables_button_db7.PNG" height=25px width=25px/>.<br>
<b>Deleting</b> specific features needs to be done on an editable layer, after selecting the features you want to delete,<br>
either press <kbd>Delete</kbd> or use the <b>Delete Features</b> button <img src="img/tables_button_db4.PNG" height=25px width=25px/>.<br>
</br><a href="#toc">Go back to the table of contents</a>
</p>
</div>
</body>
</html>