5.2. Lesson: 地物のトポロジ¶
5.2.1. Follow Along: スナップ¶
Snapping makes topological editing easier. This will allow your mouse cursor to snap to other objects while you digitize. To set snapping options:
Navigate to the menu entry.
Set up your Snapping options dialog to activate the
landuselayer with Type vertex and tolerance
Make sure that the box in the Avoid overlap column is checked.
Leave the dialog.
Check (under Advanced Digitizing toolbar is enabled.) that the
Digitize this new (fictional) area:
When prompted, give it an OGC_FID of 999, but feel free to leave the other values unchanged.
If you are careful while digitizing, and allow the cursor to snap to the vertices of adjoining areas, you'll notice that there won't be any gaps between your new area and the existing adjacent areas.
5.2.2. Follow Along: トポロジ的地物を修正¶
Topology features can sometimes need to be updated.
In our study area, an area has been turned into forest, so the
landuse layer need an update.
We will therefore expand and join some forest features in this
Instead of creating new polygons to join the forest areas, we are going to use the Vertex Tool to edit and join existing polygons.
Enter edit mode (if it is not active already)
Choose an area of forest, select a vertex, and move it to an adjoining vertex so that the two forest features meet:
Click on the other vertices and snap them into place.
Go ahead and join a few more areas using the Vertex Tool.
You can also use the Add Polygon Feature tool to fill the gap between the two forest polygons. If you have enabled Avoid overlap, you don't have to add every single vertex - they will be added automatically if your new polygon overlaps the existing ones.
If you are using our example data, you should have a forest area looking something like this:
5.2.3. Follow Along: ツール: 地物の簡素化¶
Click on one of the areas which you joined using either the Vertex Tool or Add Feature tool. You will see this dialog:
Modify the Tolerance and watch what happens:
This allows you to reduce the number of vertices.
The advantage of this tool is that it provides you with a simple and intuitive interface for generalization. But notice what the tool ruins topology. The simplified polygon no longer shares boundaries with its adjacent polygons, as it should. So this tool is better suited for stand-alone features.
5.2.4. Try Yourself ツール: リングの追加¶
The Add Ring tool allows you to add an interior ring to a polygon feature (cut a hole in the polygon), as long as the hole is completely contained within the polygon (touching the boundary is OK). For example, if you have digitized the outer boundaries of South Africa and you need to add a hole for Lesotho, you would use this tool.
If you experiment with the tool, you may notice that the snapping options can prevent you from creating a ring inside a polygon. So you are advised to turn off snapping before cutting a hole.
When you right-click, the hole will be visible.
Click inside the hole to delete it.
5.2.5. Try Yourself ツール: 部分の追加¶
The Add Part tool allows you to add a new part to a feature, that is not directly connected to the main feature. For example, if you have digitized the boundaries of mainland South Africa, but you haven't yet added the Prince Edward Islands, you would use this tool to create them.
Use the Add Part tool to add an outlying area.
Click inside the part to delete it.
5.2.6. Follow Along: ツール: 地物の変形¶
Left-click inside the polygon to start drawing.
Draw a shape outside the polygon. The last vertex should be back inside the polygon.
Right-click to finish the shape:
Cut away a part:
5.2.7. Try Yourself ツール: 地物の分割¶
We will use the tool to split a corner from a polygon.
First, select the
landuselayer and re-enable snapping for it.
Draw the bounding line.
Click a vertex on the "opposite" side of the polygon you wish to split and right-click to complete the line:
At this point, it may seem as if nothing has happened. But remember that the
landuselayer is rendered without border lines, so the new division line will not be shown.
5.2.8. Try Yourself ツール: 地物のマージ¶
Now we will re-join the feature you just split out to the remaining part of the polygon:
5.2.9. In Conclusion¶
5.2.10. What's Next?¶
Now you know how to digitize the shape of the objects easily, but adding attributes is still a bit of a headache! Next we will show you how to use forms, making attribute editing simpler and more effective.