「Setting the Snapping Tolerance and Search Radius」の版間の差分

提供: OSGeo.JP Wiki
移動: 案内検索
(ページの作成: <H3> Setting the Snapping Tolerance and Search Radius </H3> <P> Before we can edit vertices, it is very important to set the snapping tolerance and search radius to a value that…)
(相違点なし)

2009年8月17日 (月) 20:17時点における版

Setting the Snapping Tolerance and Search Radius

Before we can edit vertices, it is very important to set the snapping tolerance and search radius to a value that allows us an optimal editing of the vector layer geometries. <P> Snapping tolerance <P> Snapping tolerance is the distance QGIS uses to search for the closest vertex and/or segment you are trying to connect when you set a new vertex or move an existing vertex. If you aren't within the snap tolerance, QGIS will leave the vertex where you release the mouse button, instead of snapping it to an existing vertex and/or segment. <P>

  1. A general, project wide snapping tolerance can be defined choosing Settings > mActionOptionsOptions. (On Mac: go to QGIS > Preferences, on Linux: Edit > mActionOptionsOptions.) In the Digitizing tab you can select between to vertex, to segment or to vertex and segment as default snap mode. You can also define a default snapping tolerance and a search radius for vertex edits. The tolerance an be set either in map units or in pixels. In our digitizing project (working with the Alaska dataset), the units are in feet. Your results may vary, but something on the order of 300ft should be fine at a scale of 1:10 000 should be a reasonable setting.
  2. A layer based snapping tolerance can be defined by choosing Settings (or File) > mActionOptionsProject Properties.... In the General tab, section Digitize you can click on Snapping options... to enable and adjust snapping mode and tolerance on a layer basis (see Figure <A HREF="#fig:snappingoptions">15</A>).

<P>

<A NAME="fig:snappingoptions"></A><A NAME="580"></A>
Figure: Edit snapping options on a layer basis

[clip=true, width=14cm]editProjectSnapping

<P> Search radius

<P> Search radius is the distance QGIS uses to search for the closest vertex you are trying to move when you click on the map. If you aren't within the search radius, QGIS won't find and select any vertex for editing and it will pop up an annoying warning to that effect. Snap tolerance and search radius are set in map units or pixels, so you may find you need to experiment to get them set right. If you specify too big of a tolerance, QGIS may snap to the wrong vertex, especially if you are dealing with a large number of vertices in close proximity. Set search radius too small and it won't find anything to move.

<P> The search radius for vertex edits in layer units can be defined in the Digitizing tab under Settings > mActionOptionsOptions. The same place where you define the

general, project wide snapping tolerance.