14.4. 編集¶
QGIS has various capabilities for editing OGR, SpatiaLite, PostGIS, MSSQL Spatial and Oracle Spatial vector layers and tables.
注釈
GRASSレイヤーを編集する手順は異なります - 詳細は GRASSベクターレイヤーをデジタル化して編集する のセクションを参照。
ちなみに
同時編集
This version of QGIS does not track if somebody else is editing the same feature at the same time as you are. The last person to save the edits wins.
14.4.1. スナップ許容誤差と検索半径の設定¶
For optimal and accurate editing of vector layer geometries, we need to set an appropriate value of snapping tolerance and search radius for features vertices.
14.4.1.1. スナップ許容誤差¶
When you add a new vertex or move an existing one, the snapping tolerance is the distance QGIS uses to search for the closest vertex or segment you are trying to connect to. If you are not within the snapping tolerance, QGIS will leave the vertex where you release the mouse button, instead of snapping it to an existing vertex or segment.
The snapping tolerance setting affects all tools that work with tolerance.
You can enable / disable snapping by using the Enable
snapping button on the Snapping Toolbar or pressing s.
The snapping mode, tolerance value, and units can also be configured in
this toolbar.
The snapping configuration can also be set in
.There are three options to select the layer(s) to snap to:
All layers: quick setting for all visible layers in the project so that the pointer snaps to all vertices and/or segments. In most cases, it is sufficient to use this snapping mode, but beware when using it for projects with many vector layers, as it may affect performance.
Current layer: only the active layer is used, a convenient way to ensure topological consistency within the layer being edited.
Advanced Configuration: allows you to enable and adjust snapping mode and tolerance on a layer basis (see figure_edit_snapping). If you need to edit a layer and snap its vertices to another, make sure that the target layer is checked and increase the snapping tolerance to a higher value. Snapping will not occur to a layer that is not checked in the snapping options dialog.
As for snapping mode, you can choose between To vertex
, To segment
,
and To vertex and segment
.
The tolerance values can be set either in the project's map units
or in pixels
.
The advantage of choosing pixels
is that it keeps the snapping
constant at different map scales.
10 to 12 pixels is normally a good value, but it depends on the DPI of
your screen.
Using map units allows the tolerance to be related to real ground
distances.
For example, if you have a minimum distance between elements, this
option can be useful to ensure that you don’t add vertices too close to
each other.

図 14.85 Snapping options (Advanced Configuration mode)¶
注釈
By default, only visible features (the features whose style is displayed,
except for layers where the symbology is "No symbols") can be snapped.
You can enable the snapping on invisible features by checking
Enable snapping on invisible features under the
tab.
ちなみに
Enable snapping by default
You can set snapping to be enabled by default on all new projects in the Snapping Options dialog.
tab. You can also set the default snapping mode, tolerance value, and units, which will populate the14.4.1.2. 交差に対するスナッピングを有効にする¶
Another available option is to use snapping on
intersection, which allows you to snap to geometry intersections of
snapping enabled layers, even if there are no vertices at the intersections.
14.4.1.3. 検索半径¶
Search radius for vertex edits is the distance QGIS uses
to search
for the vertex to select when you click on the map.
If you are not within the search radius, QGIS will not find and select
any vertex for editing.
The search radius for vertex edits can be defined under the
tab (this is where you define
the snapping default values).
Snap tolerance and search radius are set in map units
or pixels
.
You may need to experiment to get them right.
If you specify a too big tolerance, QGIS may snap to the wrong vertex,
especially if you are dealing with a large number of vertices in close
proximity.
The smaller the search radius, the more difficult it will be to hit
what you want to move.
14.4.2. トポロジ編集¶
In addition to these snapping options, the Snapping options... dialog ( ) and the Snapping toolbar allow you to enable / disable some other topological functionalities.
14.4.2.1. トポロジ編集を有効にする¶
The Topological editing button helps
when editing and maintaining features with common boundaries.
With this option enabled, QGIS 'detects' shared boundaries.
When you move common vertices/segments, QGIS will also move them in
the geometries of the neighboring features.
Topological editing works with features from different layers, as long as the layers are visible and in editing mode.
14.4.2.2. Avoid overlap of new polygons¶
When the snapping mode is set to Advanced configuration
, for polygon layers,
there's an option called Avoid overlap. This option
prevents you from drawing new features that overlap existing ones in the
selected layer, speeding up digitizing of adjacent polygons.
With avoid overlap enabled, if you already have one polygon, you can digitize a second one such that they intersect. QGIS will then cut the second polygon to the boundary of the existing one. The advantage is that you don't have to digitize all vertices of the common boundary.
注釈
If the new geometry is totally covered by existing ones, it gets cleared, and QGIS will show an error message.
警告
Use cautiously the Avoid overlap option
Since this option will cut new overlapping geometries of any polygon layer, you can get unexpected geometries if you forget to uncheck it when no longer needed.
14.4.2.3. ジオメトリチェッカー¶
コアプラグインはジオメトリ無効を見つけるためにユーザーを助けることができます。このプラグインの詳細情報は ジオメトリチェッカープラグイン に見つかります。
14.4.2.4. 自動トレース¶
Usually, when using capturing map tools (add feature, add part, add ring, reshape and split), you need to click each vertex of the feature. With the automatic tracing mode, you can speed up the digitization process as you no longer need to manually place all the vertices during digitization:
Enable the
Tracing tool (in the Snapping toolbar) by pushing the icon or pressing T key.
Snap to a vertex or segment of a feature you want to trace along.
Move the mouse over another vertex or segment you'd like to snap and, instead of the usual straight line, the digitizing rubber band represents a path from the last point you snapped to the current position.
QGIS actually uses the underlying features topology to build the shortest path between the two points. Tracing requires snapping to be activated in traceable layers to build the path. You should also snap to an existing vertex or segment while digitizing and ensure that the two nodes are topologically connectable through existing features edges, otherwise QGIS is unable to connect them and thus traces a single straight line.
Click and QGIS places the intermediate vertices following the displayed path.
Unfold the Enable Tracing icon and set the
Offset option to digitize a path parallel to the features
instead of tracing along them.
A positive value shifts the new drawing to the left side of the tracing
direction and a negative value does the opposite.
注釈
最適なトレースのための地図の縮尺やスナップ設定を調整します
地図表示中にあまりにも多くの地物がある場合、トレースは、長いトレース構造の準備と大容量メモリのオーバーヘッドの可能性を回避するために、無効になります。いくつかのレイヤーをズームインまたは無効にした後、トレースは再び有効になります。
注釈
Does not add topological points
This tool does not add points to existing polygon geometries even if Topological editing is enabled. If geometry precision is activated on the edited layer, the resulting geometry might not exactly follow an existing geometry.
ちなみに
Quickly enable or disable automatic tracing by pressing the T key
By pressing the T key, tracing can be enabled/disabled anytime (even while digitizing a feature), so it is possible to digitize parts of the feature with tracing enabled and other parts with tracing disabled. Tools behave as usual when tracing is disabled.
14.4.3. 既存レイヤーのデジタイズ¶
デフォルトでは、QGISはレイヤーを読み取り専用でロードします。これは、マウスが滑ってしまった場合に誤ってレイヤーを編集することを避けるための安全装置です。しかし、どんなレイヤーでも、データプロバイダーがサポートしていて( データ形式とフィールドの探究 参照)かつ基礎となるデータソースが書き込み可能である(すなわち、そのファイルが読み取り専用でない)限り、編集を選択できます。
ちなみに
プロジェクト内のレイヤーに対する編集権限を制限する
From the
table, you can choose to set any layer read-only regardless the provider permission. This can be a handy way, in a multi-users environment to avoid unauthorized users to mistakenly edit layers (e.g., Shapefile), hence potentially corrupt data. Note that this setting only applies inside the current project.In general, tools for editing vector layers are divided into a digitizing and an advanced digitizing toolbar, described in section 高度なデジタイジング. You can select and unselect both under .
Using the basic digitizing tools, you can perform the following functions:
アイコン |
目的 |
アイコン |
目的 |
---|---|---|---|
現在の編集 |
編集切り替え |
||
レイヤー編集の保存 |
|||
Add new record |
地物を追加:ポイントをキャプチャ |
||
地物を追加:ラインをキャプチャ |
地物を追加:ポリゴンをキャプチャ |
||
Vertex Tool (All Layers) |
Vertex Tool (Current Layer) |
||
Modify the attributes of all selected features simultaneously |
|||
選択したものの削除 |
地物の切り取り |
||
地物のコピー |
地物の貼り付け |
||
元に戻す |
やり直し |
テーブル編集:ベクターレイヤー基本編集ツールバー
デジタル化のツールを何か使用している間も、ツールにフォーカスを失うことなく地図キャンバス内で ズームやパン ができることに注意してください。
すべての編集セッションは所定のレイヤーのコンテキストメニューにある 編集切替 オプション選択することによって開始、属性テーブル]ダイアログ、デジタル化のツールバー、または メニューボックスから。
レイヤーが編集モードになると、編集ツールバー上に追加のツールボタンが利用可能になり、マーカーは 選択した地物だけにマーカー表示 オプションがチェックされない限り、すべての地物の頂点に表示されます。
メニュー下14.4.3.1. 地物を追加する¶
Depending on the layer type, you can use the Add Record,
Add Point Feature,
Add Line Feature
or
Add Polygon Feature icons on the toolbar to add new
features into the current layer.
To add a geometryless feature, click on the Add Record
button and you can enter attributes in the feature form that opens.
To create features with the spatially enabled tools, you first digitize the
geometry then enter its attributes. To digitize the geometry:
Left-click on the map area to create the first point of your new feature. For point features, this should be enough and trigger, if required, the feature form to fill in their attributes. Having set the geometry precision in the layer properties you can use snap to grid here to create features based on a regular distance.
For line or polygon geometries, keep on left-clicking for each additional point you wish to capture or use automatic tracing capability to accelerate the digitization. This will create consecutive straight lines between the vertices you place.
注釈
Pressing Delete or Backspace key reverts the last node you add.
When you have finished adding points, right-click anywhere on the map area to confirm you have finished entering the geometry of that feature.
注釈
While digitizing line or polygon geometries, you can switch back and forth between the linear Add feature tools and circular string tools to create compound curved geometries.
ちなみに
デジタル化ゴムバンドをカスタマイズ
ポリゴンをキャプチャしながら、デフォルトの赤いゴムバンドを使用すると、ポイントをキャプチャしたいのですが、基礎となる地物や場所を非表示にできます。 塗りつぶし色 このゴムバンドの下に不透明度(またはアルファチャンネル)を設定することによって固定できます。 ノード編集中にゴムバンドを更新しない をチェックすることにより、ゴムバンドの使用を避けることもできます。
メニュー内の属性ウィンドウが表示され、新しい地物のための情報を入力できます。 Figure_edit_values は、アラスカの架空の新しい川の属性を設定することを示しています。しかし、 メニュー下の デジタル化 メニューの中で、以下もアクティブにできます。

図 14.86 属性を入力すると、新しいベクター地物をデジタル化した後、ダイアログ値¶
14.4.3.2. Vertex tool¶
注釈
QGIS 3 major changes
In QGIS 3, the node tool has been fully redesigned and renamed to vertex tool. It was previously working with "click and drag" ergonomy, and now uses a "click - click" workflow. This allows major improvements like taking profit of the advanced digitizing panel with the vertex tool while digitizing or editing objects of multiple layers at the same time.
For any editable vector layer, the
Vertex tool (Current Layer) provides manipulation
capabilities of
feature vertices similar to CAD programs. It is possible to simply select
multiple vertices at once and to move, add or delete them altogether.
The vertex tool also supports
the topological editing feature. This tool is selection persistent, so when some
operation is done, selection stays active for this feature and tool.
プロパティ 検索半径:
をゼロより大きい数に設定することが重要です。そうでない場合は、QGISではどの頂点が編集されているか伝えることができなくなり、警告が表示されます。
ちなみに
頂点マーカー
「半透明の円」、「十字架」と「なし」:QGISの現在のバージョンは、頂点マーカーの3種類をサポートしています。マーカーのスタイルを変更するには 選択し、 デジタル化 タブをクリックして、適切なエントリを選択します。
14.4.3.2.1. 基本操作¶
Start by activating the Vertex Tool (Current Layer).
Red circles will appear when hovering vertices.
Selecting vertices: You can select vertices by clicking on them one at a time holding Shift key pressed, or by clicking and dragging a rectangle around some vertices. When a vertex is selected, its color changes to blue. To add more vertices to the current selection, hold down the Shift key while clicking. To remove vertices from the selection, hold down Ctrl.
Batch vertex selection mode: The batch selection mode can be activated by pressing Shift+R. Select a first node with one single click, and then hover without clicking another vertex. This will dynamically select all the nodes in between using the shortest path (for polygons).
図 14.87 Batch vertex selection using Shift+R¶
Press Ctrl will invert the selection, selecting the longest path along the feature boundary. Ending your node selection with a second click, or pressing Esc will escape the batch mode.
Adding vertices: To add a vertex, a virtual new node appears on the segment center. Simply grab it to add a new vertex. A double-click on any location of the boundary also creates a new node. For lines, a virtual node is also proposed at both extremities of a line to extend it.
図 14.88 Virtual nodes for adding vertices¶
Deleting vertices: Select the vertices and click the Delete key. Deleting all the vertices of a feature generates, if compatible with the datasource, a geometryless feature. Note that this doesn't delete the complete feature, just the geometry part. To delete a complete feature use the
Delete Selected tool.
Moving vertices: Select all the vertices you want to move, click on a selected vertex or edge, and click again on the desired new location. All the selected vertices will move together. If snapping is enabled, the whole selection can jump to the nearest vertex or line. You can use Advanced Digitizing Panel constraints for distance, angles, exact X Y location before the second click.
Here you can use the snap-to-grid feature. Having set a value for the geometry precision in the layer properties, a grid appears on a zoom level according to the Geometry precision.
図 14.89 Selecting a vertex and moving the vertices to grid¶
Each change made with the vertex is stored as a separate entry in the Undo dialog. Remember that all operations support topological editing when this is turned on. On-the-fly projection is also supported, and the vertex tool provides tooltips to identify a vertex by hovering the pointer over it.
14.4.3.2.2. The Vertex Editor Panel¶
地物に 頂点ツール を使用する場合、右クリックして 頂点エディタ パネルを開くと、その地物のすべての頂点が x 、 y`(該当する場合 :guilabel:`z 、 m )座標と r (円形ジオメトリの場合の半径)で一覧表示されます。テーブルの行を選択するだけで、地図キャンバスで対応する頂点が選択されます。逆も同様です。テーブルの座標を変更するだけで、頂点の位置が更新されます。複数の行を選択して、それらを完全に削除することもできます。
注釈
Changed behavior in QGIS 3.4
Right click on a feature will immediately show the vertex editor and lock this feature, thus disabling the editing of any other features. While being locked, a feature is exclusive for editing: Selecting and moving of vertices and segments by clicking or dragging is only possible for this feature. New vertices can only be added to the locked feature. Also, the vertex editor panel now opens itself automatically upon activating the vertex tool, and its position/docked state remembered across uses.

図 14.90 選択したノードを示す頂点エディタパネル¶
14.4.3.3. 地物の切り取り、コピーと貼り付け¶
選択した地物が、同じQGISプロジェクトのレイヤーの間に、カット、コピー&ペーストできる限り、先のレイヤーが設定されているように事前に 編集切り替え 。
ちなみに
コピー/ペーストを使用して行およびその逆にポリゴンを変換
ポリゴンレイヤーにライン地物をコピーして貼り付け:QGISでは貼り付け先レイヤーにその境界、ライン地物の閉じた形状に対応したポリゴンを貼り付けます。これは、同じデータの異なる形状を生成する簡単な方法です。
地物はテキストなどの外部アプリケーションに貼り付けできます。これは、地物はジオメトリデータはOGC well-knownテキスト(WKT)形式に登場すると、CSV形式で表現されています。外部QGISからのWKTおよびGeoJSON地物もQGIS内のレイヤーに貼り付けできます。
どんなときであればコピー&ペースト機能が便利になるのでしょうか?まあ、それはあなたがレイヤーの間の一度にコピー/貼り付け機能で複数のレイヤーを編集できることが判明しました。なぜ我々はこれをしたいのでしょうか?私たちは big_lakes
レイヤーの上に5000、ない新しいレイヤーの上にいくつかの作業を行う必要があるが、1つのまたは2つの湖を必要とします。新しいレイヤーを作成し、コピー/貼り付けを使用して必要な湖をそこにポトンと落とすことができます。
例として新しいレイヤーにいくつかの湖沼をコピーします:
コピーしたいレイヤーをロードします (元レイヤー)
コピー先にしたいレイヤーをロードまたは作成します(先レイヤー)
先レイヤーの編集を開始します
凡例をクリックして元レイヤーをアクティブにします
凡例をクリックしてコピー先レイヤーをアクティブにします
編集モードを終了して変更内容を保存して下さい
コピー元とコピー先レイヤーでスキーマが異なる(フィールド名とタイプが同じではない)場合はどうなりますか?QGISは一致するものを投入し、残りは無視します。コピー先レイヤーにコピーされる属性は気にしないのであれば、フィールドとデータ型を設計する方法は重要ではありません。すべて、つまり地物とその属性、が必ずコピーされるようにしたい場合は、スキーマが一致していることを確認してください。
注釈
貼り付け地物の一致
コピー元とコピー先のレイヤーが同じ投影を使用する場合は、貼り付けられた地物はソースレイヤーと同一の形状になるでしょう。しかし、コピー先のレイヤーの投影が異なる場合、QGISでは形状が同一であることを保証できません。これは単に、投影間で変換する時に小さな丸め誤差が入ってくるためです。
ちなみに
文字列属性を他にコピー
タイプ「文字列」を使用して属性テーブルに新しい列を作成し、より大きな長さを持つ別の属性列から値を貼り付けたい場合、列のサイズの長さは同じ量に拡張されるでしょう。GDAL / OGR 1.10始まるGDALシェープファイルドライバが動的に挿入されるデータの長さに適応するように、文字列と整数フィールドを自動的に拡張することを知っているからです。
14.4.3.4. 選択地物の削除¶
If we want to delete an entire feature (attribute and geometry), we can do that
by first selecting the geometry using the regular Select
Features by area or single click tool. Selection can also be done from the attribute
table. Once you have the selection set, press Delete or Backspace
key or use the
Delete Selected tool to delete
the features. Multiple selected features can be deleted at once.
デジタル化ツールバーの 地物を切り取り ツールは、地物を削除するために使用できます。これは効果的に地物が削除されますが、それらをまた「空間クリップボード」上に置きます。そこで、削除する地物をカット。その後、
地物を貼り付け ツールを使用できます、1レベルの取り消し機能を与え、それを戻すために。一度に複数の上で動作させることができることを意味し、現在選択されている地物の切り取り、コピー、貼り付け作業。
14.4.3.5. 元に戻すとやり直し¶
元に戻す と
やり直し ツールを使用すると、ベクタ-の編集操作を元に戻すか、やり直すことができます( Figure_edit_undo を参照)。元に戻す/やり直しの履歴の中ですべての操作を示しドッキング可能なウィジェットもあります。このウィジェットは、デフォルトでは表示されません。それはツールバーを右クリックすると、 元に戻す/やり直しパネル チェックボックスをアクティブにして表示できます。しかしながら[元に戻す/やり直し]は、ウィジェットが表示されていない場合でもアクティブです。

図 14.91 デジタル化のステップを元に戻すかやり直しします¶
「元に戻す」が押されるか Ctrlキー+Z (または Cmd+Z )が押された場合、すべての地物および属性の状態が、戻される操作が起こった前の状態に戻ります。通常のベクターの編集操作以外の変更(例えば、プラグインによって行われた変更)は、どのように変更が行われたかに応じて、戻ることも戻らないこともあります。
元に戻す/やり直し 履歴ウィジェットを利用する場合単純に操作の履歴リストをクリックして下さい。すべての操作は選択操作のあとであった状態に戻されます。
14.4.3.6. 編集レイヤーの保存¶
レイヤーが編集モードである場合、すべての変更は、QGISのメモリに残ります。したがって、それらはすぐにデータソースまたはディスクにコミット/保存されるわけではありません。現在のレイヤーに編集内容を保存したいが、編集モードを離れることなく、編集を続けたい場合は、クリックできます レイヤー編集を保存 ボタン。
編集を切り替え で編集モードを無効にする(またはそのことについてQGISを終了する)と、変更を保存するか破棄するか尋ねられます。
変更が保存できない場合(例えば、ディスクがいっぱい、または属性が範囲外の値を持つ)、QGISメモリ内の状態は保持されます。これにより、編集を調整して、やり直しできます。
ちなみに
データの整合性
編集を開始する前には常に、データソースをバックアップすることをお勧めします。QGISの著者はデータの整合性を維持するためにあらゆる努力をしていますが、我々はこの点において保証を提供しません。
14.4.3.6.1. 一度に複数のレイヤーを保存する¶
この機能は、複数のレイヤーのデジタル化できます。複数のレイヤーで作られたすべての変更を保存するためには、 選択したレイヤーについて保存 を選択してください。また
選択レイヤーについてロールバック の機会を持っている、選択されたすべてのレイヤーについてデジタル化が撤回できるようになっています。選択したレイヤーを編集を中止したい場合
選択されたレイヤー(複数可)についてキャンセル が簡単な方法です。
同じ機能がプロジェクトの全レイヤーの編集で可能です.
ちなみに
複数のレイヤーの変更を一度に編集、保存、またはロールバックするためにトランザクショングループを使用する
When working with layers from the same PostGreSQL database, activate the Automatically create transaction groups where possible option in to sync their behavior (enter or exit the edit mode, save or rollback changes at the same time).
14.4.4. 高度なデジタイジング¶
アイコン |
目的 |
アイコン |
目的 |
---|---|---|---|
高度なデジタル化ツールを有効にします |
トレースを有効にします |
||
Move Feature(s) |
Copy and Move Feature(s) |
||
地物(群)の回転 |
地物の簡素化 |
||
リングの追加 |
パートの追加 |
||
リングの塗りつぶし |
Swap direction |
||
リングの削除 |
パートの削除 |
||
オフセットカーブ |
地物の変形 |
||
部分の分割 |
地物の分割 |
||
選択地物の属性の結合 |
選択地物の結合 |
||
ポイントシンボルの回転 |
ポイントシンボルのオフセット |
||
Trim or Extend Feature |
高度なテーブル編集: ベクターレイヤーの高度な編集ツールバー
14.4.4.1. Move Feature(s)¶
The Move Feature(s) tool allows you to move existing features:
Select the feature(s) to move.
Click on the map canvas to indicate the origin point of the displacement; you can rely on snapping capabilities to select an accurate point.
You can also take advantages of the advanced digitizing constraints to accurately set the origin point coordinates. In that case:
地図キャンバス上を移動して、位置変更の目的点を示します。ここでもスナップモードを使用するか、上記のように高度なデジタイジングパネルを使用して
距離
と角度
の配置制約を補完することで、変換の終点を配置できます。Click on the map canvas: the whole features are moved to new location.
Likewise, you can create a translated copy of the feature(s) using the
Copy and Move Feature(s) tool.
注釈
地物を移動 または 地物をコピーして移動 ツールを使って地図キャンバス上で最初にクリックしたときに地物が何も選択されていない場合、マウスの下にある地物だけがその操作の影響を受けます。そのため、複数の地物を移動させたい場合は、それらの地物を先に選択しておく必要があります。
14.4.4.2. 地物(群)の回転¶
Use the Rotate Feature(s) tool to rotate one or multiple
features in the map canvas:
Then click on the feature to rotate. The feature's centroid is referenced as rotation center, a preview of the rotated feature is displayed and a widget opens showing the current Rotation angle.
Click on the map canvas when you are satisfied with the new placement or manually enter the rotation angle in the text box. You can also use the Snap to ° box to constrain the rotation values.
If you want to rotate several features at once, they shall be selected first, and the rotation is by default around the centroid of their combined geometries.
You can also use an anchor point different from the default feature centroid: press the Ctrl button, click on the map canvas and that point will be used as the new rotation center.
地図上をクリックする前に Shift を保持している場合、回転が45度の段階で行われます、ユーザー入力ウィジェットの中で後で変更できます。
To abort feature rotation, press the ESC button or click on the
Rotate Feature(s) icon.
14.4.4.3. 地物の簡素化¶
The Simplify Feature tool allows you to interactively
reshape a line or polygon geometry by reducing or densifying the number of
vertices, as long as the geometry remains valid:
Click on the feature or drag a rectangle over the features.
A dialog pops up allowing you to define the Method to apply, ie whether you would like to:
simplify the geometry, meaning less vertices than the original. Available methods are
Simplify by distance
,Simplify by snapping to grid
orsimplify by area (Visvalingam)
. You'd then need to indicate the value of Tolerance inLayer units
,Pixels
ormap units
to use for simplification. The higher the tolerance is the more vertices can be deleted.or densify the geometries with new vertices thanks to the
Smooth
option: for each existing vertex, two vertices are placed on each of the segments originated from it, at an Offset distance representing the percentage of the segment length. You can also set the number of Iterations the placement would be processed: the more iterations, the more vertices and smoother is the feature.
Settings that you used will be saved when leaving a project or an edit session. So you can go back to the same parameters the next time you simplify a feature.
A summary of the modifications that would apply is shown at the bottom of the dialog, listing number of features and number of vertices (before and after the operation and the ratio the change represents). Also, in the map canvas, the expected geometry is displayed over the existing one, using the rubberband color.
When the expected geometry fits your needs, click OK to apply the modification. Otherwise, to abort the operation, you can either press Cancel or right-click in the map canvas.
14.4.4.4. パートの追加¶
選択された地物に 部分を追加 して、マルチポイント、マルチラインまたはマルチポリゴン地物を生成します。新しい部分は、事前に選択する必要のある既存のものの外にデジタル化する必要があります。
部分を追加 は、ジオメトリのない地物にジオメトリを追加するためにも使用できます。まず、属性テーブルで地物を選択し、
部分を追加 ツールで新しいジオメトリを数値化します。
14.4.4.5. パートの削除¶
部分を削除 ツールは、複数部分地物から部分を削除できます(例えば、マルチポリゴン地物からポリゴンを削除する)。ポイント、ラインとポリゴン:このツールは、すべての複数部分ジオメトリで動作します。さらに、完全な地物の幾何的構成要素を除去するために使用できます。一部を削除するには、単に対象の部分内をクリックします。
14.4.4.6. リングの追加¶
ツールバーの リングを追加 アイコンを使用してリングポリゴンを作成できます。これは、既存の領域の内部、外側と内側の多角形の境界の間の領域のみがリングポリゴンとして残るように、「穴」として発生する更なるポリゴンをデジタル化することが可能であることを意味します。
14.4.4.7. リングの塗りつぶし¶
The Fill Ring tool helps you create polygon feature that
totally falls within another one without any overlapping area; that is the new
feature covers a hole within the existing one. To create such a feature:
Draw a new polygon over the existing feature: QGIS adds a ring to its geometry (like if you used the
Add Ring tool) and creates a new feature whose geometry matches the ring (like if you traced over the interior boundaries with the
Add polygon feature tool).
Or alternatively, if the ring already exists on the feature, place the mouse over the ring and left-click while pressing Shift: a new feature filling the hole is drawn at that place.
The Feature Attributes form of the new feature opens, pre-filled with values of the "parent" feature and/or fields constraints.
14.4.4.8. リングの削除¶
リングを削除 ツールでは、穴の内側をクリックすることで、既存のポリゴン内のリングを削除できます。このツールは、ポリゴンとマルチポリゴンの地物に対応しています。それはポリゴンの外側のリング上で使用されているとき、それは何も変わりません。
14.4.4.9. 地物の変形¶
ツールバーの 地物を変形 ツールを使用するとラインやポリゴンの形状を変更できます。ラインの場合は、最初のラインからのライン部分を元のラインとの最後の交差まで置き換えます。

図 14.92 ラインを変形¶
ちなみに
変形ツールでラインストリングジオメトリを延長
地物を変形 を使用する、ツール既存のラインストリングジオメトリを拡張する:ラインの最初または最後の頂点にスナップして、新しいラインを描画します。検証すると、地物のジオメトリは2つのラインの組み合わせになります。
ポリゴンの場合は、ポリゴンの境界を再形成します。それが動作するためには、変形ツールの線はポリゴンの境界を少なくとも2回横切る必要があります。ラインを描画するには、地図キャンバスをクリックして頂点を追加します。終了するには、右クリックしてください。ラインと同様に、最初の交差点と最後の交差点の間のセグメントのみが考慮されます。ポリゴンの内側にあるリシェイプラインのセグメントは、ポリゴンの外側にあるものがポリゴンの外側にある部分を切り取るようになります。

図 14.93 ポリゴンを変形¶
ポリゴンでは、変形によって意図しない結果が生じることがあります。これは、ポリゴンの小さな部分を置換することが主なオーバーホールではなく、主に有効です。また、変形ラインは、無効なポリゴンを生成するので、いくつかのポリゴンリングを横切ることはできません。
注釈
変形ツールは、ポリゴンのリングまたは閉じた線の開始位置を変更することができます。だから、「二回」表されるポイントはこれ以上同じにはなりません。これは、ほとんどのアプリケーションでは問題ではないかもしれないが、考慮すべきものです。
14.4.4.10. オフセットカーブ¶
オフセット曲線 ツールは、ラインレイヤーの平行移動を作成します。ツールは、編集されたレイヤー(ジオメトリが変更された)に適用し、あるいはまた(それはライン/リングのコピーを作成し、編集したレイヤーに追加した場合)、背景レイヤーにできます。したがって、距離線レイヤーの作成に最適です。 ユーザー入力 ダイアログポップアップ、変位距離を示します。
ラインレイヤーのシフトを作成するには、まず編集モードに入るとアクティブにする必要があります オフセット曲線 ツール。そして、それをシフトする地物をクリックしてください。マウスを移動し、望んでいたか、ユーザー入力ウィジェットに所望の距離を入力する場所をクリックします。変更は、その後一緒に保存できます
レイヤー編集を保存 ツール。
QGISのオプション]ダイアログボックス([デジタル化]タブの後 曲線ツールをオフセット セクション) 結合スタイル 、 クアドラントセグメント 、マイターリミット のようないくつかのパラメーターを設定できます。
14.4.4.11. Reverse Line¶
Changing the direction of a line geometry can be useful for cartographical purposes or when preparing for network analysis.
To change a line direction:
14.4.4.12. 地物の分割¶
Use the Split Features tool to split a feature into two
or more new and independent features, ie. each geometry corresponding to a new
row in the attribute table.
To split line or polygon features:
Draw a line across the feature(s) you want to split. If a selection is active, only selected features are split. When set, default values or clauses are applied to corresponding fields and other attributes of the parent feature are by default copied to the new features.
You can then as usually modify any of the attributes of any resulting feature.
14.4.4.13. 部分の分割¶
QGISでは、部分数が増加するように複数部分地物の部分を分割することが可能です。ちょうど使用して分割したい部分全体に線を引きます 部分を分割 アイコン。
14.4.4.14. 選択地物のマージ¶
選択された地物をマージ ツールは、既存の地物をマージして新しい地物を作成することを可能にします。それらのジオメトリをマージして新しい地物を生成します。地物に共通の境界がない場合、マルチポリゴン/マルチライン/マルチポイント地物が作成されます。
First, select the features you'd like to combine.
In the new dialog, the Merge line at the bottom of the table shows the attributes of the resulting feature. You can alter any of these values either by:
manually replacing the value in the corresponding cell;
selecting a row in the table and pressing Take attributes from selected feature to use the values of this initial feature;
pressing Skip all fields to use empty attributes;
or, expanding the drop down menu at the top of the table, select any of the above options to apply to the corresponding field only. There, you can also choose to aggregate the initial features attributes (Minimum, Maximum, Median, Sum, Count, Concatenation... depending on the type of the field. see 統計パネル for the full list of functions).
注釈
If the layer has default values or clauses present on fields, these are used as the initial value for the merged feature.
Press OK to apply the modifications. A single (multi)feature is created in the layer, replacing the previously selected ones.
14.4.4.15. 選択地物の属性マージ¶
選択した地物の属性をマージする ツールを使用すると、地物に境界をマージせずに同じ属性を適用できます。このダイアログは、「選択された地物のマージ」ツールとは異なり、そのツールと異なり、選択されたオブジェクトは、その属性の一部は同一になりますが、ジオメトリは保持されます。
14.4.4.16. ポイントシンボルの回転¶
The Rotate Point Symbols allows you to change the
rotation of point symbols in the map canvas.
First of all, apply to the symbol a data-defined rotation:
In the
dialog, browse to the symbol editor dialog.Click the
Data-defined override widget near the Rotation option of the top Marker level (preferably) of the symbol layers.
Choose a field in the Field Type combobox. Values of this field are hence used to rotate each feature's symbol accordingly.
注釈
Make sure that the same field is assigned to all the symbol layers
Setting the data-defined rotation field at the topmost level of the symbol tree automatically propagates it to all the symbol layers, a prerequisite to perform graphical symbol rotation with the Rotate Point Symbols tool. Indeed, if a symbol layer does not have the same field attached to its rotation property, the tool will not work.
図 14.94 Rotating a point symbol¶
Then click on a point feature in the map canvas with the
Rotate Point Symbols and move the mouse around, holding the left button pressed. A red arrow with the rotation value will be visualized (see Figure_rotate_point).
Release the left mouse button again, the symbol is defined with this new rotation and the rotation field is updated in the layer's attribute table.
ちなみに
Ctrl キーを押し続けると回転は15度単位で実行されます。
14.4.4.17. ポイントシンボルのオフセット¶
ポイントシンボルをオフセット は、地図キャンバス内のポイントシンボルのレンダリングされた位置を対話的に変更することを可能にします。このツールは、
のように動作します。 ポイントシンボルを回転 ツールは、フィールドをシンボルのデータ定義の Offset(X,Y) プロパティに接続する必要がある点を除いて、オフセット座標で設定されます。地図キャンバスでシンボルを移動します。
14.4.4.18. Trim/Extend Feature¶
When a digitized line is too short or too long to snap to another line (missing or crossing the line), it is necessary to be able to extend or shorten the segment.
The Trim/Extend tool allows you to also modify
(multi)lines AND (multi)polygons.
Moreover, it is not necessarily the end of the lines that is
concerned; any segment of a geometry can be modified.
注釈
This can lead to invalid geometries.
注釈
You must activate segment snapping for this tool to work.
The tool asks you to select a limit (a segment) with respect to which another segment will be extended or trimmed. Unlike the vertex tool, a check is performed to modify only the layer being edited.
When both segments are in 3D, the tool performs an interpolation on the limit segment to get the Z value.
In the case of a trim, you must select the part that will be shortened by clicking on it.
14.4.5. Shape digitizing¶
The Shape Digitizing toolbar offers a set of tools to draw regular shapes and curved geometries.
14.4.5.1. Add Circular string¶
The Add circular string or
Add circular string by radius buttons allow users
to add line or polygon features with a circular geometry.
Creating features with these tools follow the same rule as of other digitizing tools: left-click to place vertices and right-click to finish the geometry. While drawing the geometry, you can switch from one tool to the other as well as to the linear geometry tools, creating some coumpound geometries.
注釈
湾曲形状は互換性のあるデータプロバイダーにおいてだけそのようなものとして記憶
Although QGIS allows to digitize curved geometries within any editable data format, you need to be using a data provider (e.g. PostGIS, memory layer, GML or WFS) that supports curves to have features stored as curved, otherwise QGIS segmentizes the circular arcs.
14.4.5.2. Draw Circles¶
There is a set of tools for drawing circles. The tools are described below.
Circles are converted into circular strings. Therefore, as explained in Add Circular string, if allowed by the data provider, it will be saved as a curved geometry, if not, QGIS will segmentize the circular arcs.
Add circle from 2 points: The two points define the diameter and the orientation of the circle. (Left-click, right-click)
Add circle from 3 points: Draws a circle from three known points on the circle. (Left-click, left-click, right-click)
Add circle from center and a point: Draws a circle with a given center and a point on the circle (Left-click, right-click). When used with the 高度なデジタル化パネル this tool can become a "Add circle from center and radius" tool by setting and locking the distance value after first click.
Add circle from 3 tangents: Draws a circle that is tangential to three segments. Note that you must activate snapping to segments (See スナップ許容誤差と検索半径の設定). Click on a segment to add a tangent. If two tangents are parallel, an error message appears and the input is cleared. (Left-click, left-click, right-click)
Add circle from 2 tangents and a point: Similar to circle from 3 tangents, except that you have to select two tangents, enter a radius and select the desired center.
14.4.5.3. Draw Ellipses¶
There is a set of tools for drawing ellipses. The tools are described below.
Ellipses cannot be converted as circular strings, so they will always be segmented.
Add Ellipse from center and two points: Draws an ellipse with a given center, major axis and minor axis. (Left-click, left-click, right-click)
Add Ellipse from center and a point: Draws an ellipse into a bounding box with the center and a corner. (Left-click, right-click)
Add Ellipse from extent: Draws an ellipse into a bounding box with two opposite corners. (Left-click, right-click)
Add Ellipse from foci: Draws an ellipse by 2 points for foci and a point on the ellipse. (Left-click, left-click, right-click)
14.4.5.3.1. Draw Rectangles¶
There is a set of tools for drawing rectangles. The tools are described below.
Rectangle from center and a point: Draws a rectangle from the center and a corner. (Left-click, right-click)
Rectangle from extent: Draws a rectangle from two opposite corners. (Left-click, right-click)
Rectangle from 3 points (distance): Draws an oriented rectangle from three points. The first and second points determine the length and angle of the first edge. The third point determines the length of the other edge. (Left-click, left-click, right-click)
Rectangle from 3 points (projected): Same as the preceding tool, but the length of the second edge is computed from the projection of the third point on the first edge. (Left-click, left-click, right-click)
図 14.95 Draw rectangle from 3 points using distance (right) and projected (left)¶
14.4.5.3.2. Draw Regular Polygons¶
There is a set of tools for drawing regular polygons. The tools are described below. Left-click to place the first point. A dialog appears, where you can set the number of polygon edges. Right-click to finish the regular polygon.
Regular polygon from two points: Draws a regular polygon where the two points determine the length and angle of the first edge.
Regular polygon from center and a point: Draws a regular polygon from the provided center point. The second point determines the angle and distance to the middle of an edge.
Regular polygon from center and a corner: Same as the preceding tool, but the second point determines the angle and distante to a vertex.
14.4.6. 高度なデジタル化パネル¶
新規または既存のジオメトリをキャプチャ、再シェーピング、分割するときには、高度なデジタル化パネルを使用できます。特定の角度に対して線を正確に平行または垂直にデジタイズするか、線を特定の角度にロックできます。さらに、新しいジオメトリを正確に定義できるように、座標を直接入力することもできます。

図 14.96 高度なデジタル化パネル¶
The Advanced Digitizing panel can be open either with a right-click
on the toolbar, from menu or pressing
Ctrl+4. Once the panel is visible, click the Enable advanced
digitizing tools button to activate the set of tools.
注釈
地図ビューは、地理座標系である場合のツールが有効になっていません。
14.4.6.1. 概念¶
高度なデジタル化ツールの目的は、地図キャンバスのデジタル化中にマウスを動かすときの座標、長さ、および角度をロックすることです。
相対参照または絶対参照を使用して、制約を作成することもできます。相対参照とは、次の頂点制約の値が前の頂点またはセグメントを基準とすることを意味します。
14.4.6.2. スナップ設定¶
ボタンを押して、高度なデジタル化ツールのスナップ設定を設定します。ツールを共通の角度にスナップできます。オプションは次のとおりです。
共通角にスナップしない
30º度にスナップ
45º度にスナップ
90º度にスナップ
地物のスナップを制御することもできます。オプションは次のとおりです。
頂点または線分にスナップしない
プロジェクト設定に応じてスナップする
すべてのレイヤーにスナップ
14.4.6.3. キーボードショートカット¶
To speed up the use of Advanced Digitizing Panel, there are a couple of keyboard shortcuts available:
キー |
シンプル |
Ctrl+ or Alt+ |
Shift+ |
---|---|---|---|
D |
距離を設定 |
距離をロック |
|
A |
角度を設定 |
角度をロック |
最後のセグメントに対する相対的な角度に切り替え |
X |
Set X coordinate |
Lock X coordinate |
Toggle relative X to last vertex |
Y |
Set Y coordinate |
Lock Y coordinate |
Toggle relative Y to last vertex |
C |
作図モードを切り替え |
||
P |
垂直と水平モードを切り替え |
14.4.6.4. 絶対参照デジタイジング¶
新しいジオメトリを最初から描画するときは、与えられた座標で頂点をデジタル化することが可能です。
たとえば、ポリゴンレイヤーに新しい地物を追加するには、 ボタンをクリックします。地物の編集を開始するX座標とY座標を選択してから、次の操作を実行できます。
Click the x text box (or use the X keyboard shortcut).
Click the y text box (or use the Y keyboard shortcut).
2つの青い点線と緑の十字は、入力した正確な座標を示します。地図キャンバスをクリックしてデジタイズを開始します。マウスの位置は緑の十字でロックされます。

図 14.97 与えられた座標で描画を開始¶
フリーハンドでデジタル化を続行したり、新しい座標ペアを追加したり、セグメントの 長さ (距離)と 角度 を入力できます。
If you want to draw a segment of a given length, click the d
(distance) text box (keyboard shortcut D), type the distance value (in
map units) and press Enter or click the button on the right to
lock the mouse in the map canvas to the length of the segment.
In the map canvas, the clicked point is surrounded by a circle whose radius is
the value entered in the distance text box.

図 14.98 固定長セグメント¶
Finally, you can also choose the angle of the segment. As described before ,
click the a (angle) text box (keyboard shortcut A), type the
angle value (in degrees), and press Enter or click the buttons
on the right to lock it. In this way the segment will follow the desired angle:

図 14.99 固定角セグメント¶
14.4.6.5. 相対参照デジタイジング¶
角度または座標の絶対値を使用する代わりに、最後のデジタル化された頂点またはセグメントを基準にした値を使用することもできます。
For angles, you can click the button on the left of the a
text box (or press Shift+A) to toggle relative angles to the previous
segment. With that option on, angles are measured between the last segment
and the mouse pointer.
For coordinates, click the buttons to the left of the x or
y text boxes (or press Shift+X or Shift+Y) to
toggle relative coordinates to the previous vertex. With these options on,
coordinates measurement will consider the last vertex to be the X and Y axes
origin.
14.4.6.6. 連続的ロック¶
Both in absolute or relative reference digitizing, angle, distance, X and Y
constraints can be locked continuously by clicking the
Continuous lock buttons. Using continuous lock allows you to
digitize several points or vertexes using the same constraints.
14.4.6.7. Parallel and perpendicular lines¶
上記のすべてのツールは、 垂直 および
平行 ツールと組み合わせできます。これらの2つのツールでは、描画セグメントを別のセグメントと完全に垂直または平行にできます。
To draw a perpendicular segment, during the editing click the
Perpendicular icon (keyboard shortcut P) to
activate it. Before drawing the perpendicular line,
click on the segment of an existing feature that you want to be perpendicular
to (the line of the existing feature will be colored in light orange); you
should see a blue dotted line where your feature will be snapped:

図 14.100 垂直デジタイズ¶
To draw a parallel feature, the steps are the same: click on the
Parallel icon (keyboard shortcut P twice), click on
the segment you want to use as reference and start drawing your feature:

図 14.101 平行デジタイジング¶
これらの2つのツールは、直角と平行な角度の直角を見つけて、編集中にこのパラメーターをロックします。
14.4.6.8. 作図モード¶
Construction アイコンをクリックするか、キーボードショートカット C により、 construction モードを有効にしたり無効にしたりできます。コンストラクションモードでは、地図キャンバスをクリックしても新しい頂点は追加されませんが、クリックした位置はキャプチャされるので、距離や角度、X や Y の相対値をロックするための基準点として使用できます。
一例として、構築モードを使用して、ある点を既存の点から正確な距離に描画できます。
With an existing point in the map canvas and the snapping mode correctly
activated, you can easily draw other points at given distances and angles from
it. In addition to the button, you have to activate also the
construction mode by clicking the
Construction
icon or with the C keyboard shortcut.
Click next to the point from which you want to calculate the distance and click on the d box (D shortcut) type the desired distance and press Enter to lock the mouse position in the map canvas:

図 14.102 点からの距離¶
新しい点を追加する前に C を押して作業モードを終了してください。これで地図上でクリックすると、入力された距離に点が配置されます。
You can also use the angle constraint to, for example, create another point at
the same distance of the original one, but at a particular angle from the newly
added point. Click the Construction icon or with the
C keyboard shortcut to enter construction mode. Click the recently added
point, and then the other one to set a direction segment. Then, click on the
d text box (D shortcut) type the desired distance and press
Enter. Click the a text box (A shortcut) type the
angle you want and press Enter. The mouse position will be locked both in
distance and angle.

図 14.103 点からの距離と角度¶
Before adding the new point, press C to exit the construction mode. Now, you can click on the map canvas, and the point will be placed at the distance and angle entered. Repeating the process, several points can be added.

図 14.104 所与の距離と角度の点¶
14.4.7. The Processing in-place layer modifier¶
The Processing menu provides access to a large set of tools to analyze and create new features based on the properties of the input features or their relations with other features (within the same layer or not). While the common behavior is to create new layers as outputs, some algorithms also allow modifications to the input layer. This is a handy way to automate multiple features modification using advanced and complex operations.
To edit features in-place:
Select the layer to edit in the Layers panel.
Select the concerned features. You can skip this step, in which case the modification will apply to the whole layer.
Press the
Edit Features In-Place button at the top of the Processing toolbox. The list of algorithms is filtered, showing only those compatible with in-place modifications, i.e.:
They work at the feature source and not at the layer level.
They do not change the layer structure, e.g. adding or removing fields.
They do not change the geometry type, e.g. from line to point layer.
図 14.105 Processing algorithms: all (left) vs polygon in-place editors (right)¶
Find the algorithm you'd like to run and double-click it.
注釈
If the algorithm does not need any additional user-set parameters (excluding the usual input and output layer parameters), then the algorithm is run immediately without any dialog popup.
If parameters other than the usual input or output layers are needed, the algorithm dialog pops up. Fill in the required information.
Click Modify Selected Features or Modify All Features depending on whether there's an active selection.
Changes are applied to the layer and placed in the edit buffer: the layer is indeed toggled to editing mode with unsaved modification as indicated by the
icon next to the layer name.
As usual, press
Save layer edits to commit the changes in the layer. You can also press
Undo to rollback the whole modification.