「Plugins ftools」の版間の差分

提供: OSGeo.JP Wiki
移動: 案内検索
(ページの作成: <H2> fTools Plugin </H2> <P> The goal of the fTools python plugin is to provide a one-stop resource for many common vector-based GIS tasks, without the need for additional softw…)
 
(fTools functions)
 
(同じ利用者による、間の1版が非表示)
行1: 行1:
<H2>
+
=== fTools Plugin ===
fTools Plugin
+
<span id='sec:ftools'></span>
</H2>
+
  
<P>
 
 
The goal of the fTools python plugin is to provide a one-stop resource for
 
The goal of the fTools python plugin is to provide a one-stop resource for
 
many common vector-based GIS tasks, without the need for additional software,  
 
many common vector-based GIS tasks, without the need for additional software,  
行9: 行7:
 
data management and analysis functions that are both fast and functional.  
 
data management and analysis functions that are both fast and functional.  
  
<P>
 
 
fTools is now automatically installed and enabled in new versions of QGIS, and as with all plugins, it can  
 
fTools is now automatically installed and enabled in new versions of QGIS, and as with all plugins, it can  
be disabled and enabled using the Plugin Manager (See Section [[#sec:managing_plugins]]).
+
be disabled and enabled using the Plugin Manager (See Section [[sec:managing_plugins]]).
When enabled, the fTools plugin adds a Tools menu to QGIS, providing functions ranging from  
+
When enabled, the fTools plugin adds a {{Template:MainMenuOpt|Tools}} menu to QGIS, providing functions ranging from  
 
Analysis and Research Tools to Geometry and Geoprocessing Tools, as well as several useful Data Management Tools.
 
Analysis and Research Tools to Geometry and Geoprocessing Tools, as well as several useful Data Management Tools.
  
<P>
+
===== fTools functions =====
fTools functions<A NAME="ftool_functions"></A>
+
<span id='ftool_functions'></span>
<P>
+
Tables [[#tab:ftool_analysis|6]] through [[#tab:fTool_data_management|10]] list the functions available via the fTools plugin, along with a brief description of each function. For further information on an individual fTools function, please click the {{Template:DropMenuOpt|fTools Information}} menu item in the {{Template:MainMenuOpt|Tools}} menu.
Tables [[#tab:ftool_analysis|6]] through [[#tab:fTool_data_management|10]] list the functions available via the fTools plugin, along with a brief description of each function. For further information on an individual fTools function, please click the fTools Information menu item in the Tools menu.
+
  
<P>
 
<BR><P></P>
 
<DIV ALIGN="CENTER">
 
<A NAME="12"></A>
 
<DIV ALIGN="CENTER">
 
  
</DIV><A NAME="tab:ftool_analysis"></A><P>
+
<table border='1' align='center'><caption>'''表 6:''' fTools Analysis tools</caption><span id='tab:ftool_analysis'></span>
<BR>
+
<!-- {|p{0.3in}|p{1.2in}|p{4.7in}|} -->
<A NAME="13"></A>
+
<tr><td colspan='3'>'''Analysis tools available via the fTools plugin'''<tr>
<TABLE CELLPADDING=3 BORDER="1">
+
<tr><td width='29'> '''Icon''' <td width='115'> '''Tool''' <td width='451'> '''Purpose''' </tr>
<CAPTION><STRONG>Table 6:</STRONG>
+
<tr><td> [[File:matrix.png|26px]] <td> Distance Matrix <td>
fTools Analysis tools</CAPTION>
+
Measure distances between two point layers, and output results as a) Square
<TR><TD ALIGN="CENTER" COLSPAN=3><SPAN><SPAN  CLASS="textbf">Analysis tools available via the fTools plugin</SPAN></SPAN></TD>
+
</TR>
+
<TR><TH ALIGN="LEFT" VALIGN="TOP" WIDTH=22><SPAN  CLASS="textbf">Icon</SPAN></TH>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86><SPAN  CLASS="textbf">Tool</SPAN></TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=338><SPAN  CLASS="textbf">Purpose</SPAN></TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]matrix</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Distance Matrix</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=338>Measure distances between two point layers, and output results as a) Square
+
 
distance matrix, b) Linear distance matrix, or c) Summary of distances. Can
 
distance matrix, b) Linear distance matrix, or c) Summary of distances. Can
limit distances to the k nearest features.</TD>
+
limit distances to the k nearest features. </tr>
</TR>
+
<tr><td> [[File:sum_lines.png|26px]] <td> Sum line length <td> Calculate
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]sum_lines</TD>
+
the total sum of line lengths for each polygon of a polygon vector layer. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Sum line length</TD>
+
<tr><td> [[File:sum_points.png|26px]] <td> Points in polygon <td> Count
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=338>Calculate
+
the total sum of line lengths for each polygon of a polygon vector layer.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]sum_points</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Points in polygon</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=338>Count
+
 
the number of points that occur in each polygon of an input polygon vector
 
the number of points that occur in each polygon of an input polygon vector
layer.</TD>
+
layer. </tr>
</TR>
+
<tr><td> [[File:unique.png|26px]] <td> List unique values <td> List
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]unique</TD>
+
all unique values in an input vector layer field. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>List unique values</TD>
+
<tr><td> [[File:basic_statistics.png|26px]] <td> Basic statistic <td> Compute
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=338>List
+
basic statistics (mean, std dev, N, sum, CV) on an input field. </tr>
all unique values in an input vector layer field.</TD>
+
<tr><td> [[File:neighbour.png|26px]] <td> Nearest Neighbor analysis
</TR>
+
<td> Compute nearest neighbour statistics to assess the level of clustering in a
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]basic_statistics</TD>
+
point vector layer. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Basic statistic</TD>
+
<tr><td> [[File:mean.png|26px]] <td> Mean coordinate(s) <td>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=338>Compute
+
Compute either the normal or weighted mean center of an entire vector layer,
basic statistics (mean, std dev, N, sum, CV) on an input field.</TD>
+
or multiple features based on a unique ID field. </tr>
</TR>
+
<tr><td> [[File:intersections.png|26px]] <td> Line intersections <td>
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]neighbour</TD>
+
Locate intersections between lines, and output results as a point shapefile.
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Nearest Neighbor analysis</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=338>Compute nearest neighbour statistics to assess the level of clustering in a
+
point vector layer.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]mean</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Mean coordinate(s)</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=338>Compute either the normal or weighted mean center of an entire vector layer,
+
or multiple features based on a unique ID field.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]intersections</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Line intersections</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=338>Locate intersections between lines, and output results as a point shapefile.
+
 
Useful for locating road or stream intersections, ignores line intersections
 
Useful for locating road or stream intersections, ignores line intersections
with length &gt; 0.</TD>
+
with length > 0. </tr>
</TR>
+
</table>
</TABLE>
+
</DIV>
+
<BR>
+
  
<P>
 
<BR><P></P>
 
<DIV ALIGN="CENTER">
 
<A NAME="36"></A>
 
<DIV ALIGN="CENTER">
 
  
</DIV><A NAME="tab:ftool_research"></A><P>
+
<table border='1' align='center'><caption>'''表 7:''' fTools Research tools</caption><span id='tab:ftool_research'></span>
<BR>
+
<!-- {|p{0.3in}|p{1.3in}|p{4.6in}|} -->
<A NAME="37"></A>
+
<tr><td colspan='3'>'''Research tools available via the fTools plugin'''<tr>
<TABLE CELLPADDING=3 BORDER="1">
+
<tr><td width='29'> '''Icon''' <td width='125'> '''Tool''' <td width='442'> '''Purpose''' </tr>
<CAPTION><STRONG>Table 7:</STRONG>
+
<tr><td> [[File:random_selection.png|26px]] <td> Random selection <td> Randomly  
fTools Research tools</CAPTION>
+
select n number of features, or n percentage of features </tr>
<TR><TD ALIGN="CENTER" COLSPAN=3><SPAN><SPAN  CLASS="textbf">Research tools available via the fTools plugin</SPAN></SPAN></TD>
+
<tr><td> [[File:sub_selection.png|26px]] <td> Random selection within  
</TR>
+
subsets <td> Randomly select features within subsets based on a unique ID field. </tr>
<TR><TH ALIGN="LEFT" VALIGN="TOP" WIDTH=22><SPAN  CLASS="textbf">Icon</SPAN></TH>
+
<tr><td> [[File:random_points.png|26px]] <td> Random points <td> Generate  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94><SPAN  CLASS="textbf">Tool</SPAN></TD>
+
pseudo-random points over a given input layer. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331><SPAN  CLASS="textbf">Purpose</SPAN></TD>
+
<tr><td> [[File:regular_points.png|26px]] <td> Regular points <td> Generate  
</TR>
+
a regular grid of points over a specified region and export them as a point shapefile. </tr>
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]random_selection</TD>
+
<tr><td> [[File:vector_grid.png|26px]] <td> Vector grid <td> Generate a  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Random selection</TD>
+
line or polygon grid based on user specified grid spacing. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Randomly  
+
<tr><td> [[File:select_location.png|26px]] <td> Select by location <td>  
select n number of features, or n percentage of features</TD>
+
Select features based on their location relative to another layer to form a  
</TR>
+
new selection, or add or subtract from the current selection. </tr>
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]sub_selection</TD>
+
<tr><td> [[File:layer_extent.png|26px]] <td> Polygon from layer extent <td>  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Random selection within  
+
Create a single rectangular polygon layer from the extent of an input raster or vector layer. </tr>
subsets</TD>
+
</table>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Randomly select features within subsets based on a unique ID field.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]random_points</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Random points</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Generate  
+
pseudo-random points over a given input layer.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]regular_points</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Regular points</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Generate  
+
a regular grid of points over a specified region and export them as a point shapefile.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]vector_grid</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Vector grid</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Generate a  
+
line or polygon grid based on user specified grid spacing.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]select_location</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Select by location</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Select features based on their location relative to another layer to form a  
+
new selection, or add or subtract from the current selection.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]layer_extent</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Polygon from layer extent</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Create a single rectangular polygon layer from the extent of an input raster or vector layer.</TD>
+
</TR>
+
</TABLE>
+
</DIV>
+
<BR>
+
  
<P>
 
<BR><P></P>
 
<DIV ALIGN="CENTER">
 
<A NAME="59"></A>
 
<DIV ALIGN="CENTER">
 
  
</DIV><A NAME="tab:ftool_geoprocessing"></A><P>
+
<table border='1' align='center'><caption>'''表 8:''' fTools Geoprocessing tools</caption><span id='tab:ftool_geoprocessing'></span>
<BR>
+
<!-- {|p{0.3in}|p{0.8in}|p{5.1in}|} -->
<A NAME="60"></A>
+
<tr><td colspan='3'>'''Geoprocessing tools available via the fTools plugin'''<tr>
<TABLE CELLPADDING=3 BORDER="1">
+
<tr><td width='29'> '''Icon''' <td width='77'> '''Tool''' <td width='490'> '''Purpose''' </tr>
<CAPTION><STRONG>Table 8:</STRONG>
+
<tr><td> [[File:convex_hull.png|26px]] <td> Convex hull(s) <td> Create  
fTools Geoprocessing tools</CAPTION>
+
minimum convex hull(s) for an input layer, or based on an ID field. </tr>
<TR><TD ALIGN="CENTER" COLSPAN=3><SPAN><SPAN  CLASS="textbf">Geoprocessing tools available via the fTools plugin</SPAN></SPAN></TD>
+
<tr><td> [[File:buffer.png|26px]] <td> Buffer(s) <td> Create  
</TR>
+
buffer(s) around features based on distance, or distance field. </tr>
<TR><TH ALIGN="LEFT" VALIGN="TOP" WIDTH=22><SPAN  CLASS="textbf">Icon</SPAN></TH>
+
<tr><td> [[File:intersect.png|26px]] <td> Intersect <td> Overlay  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=58><SPAN  CLASS="textbf">Tool</SPAN></TD>
+
layers such that output contains areas where both layers intersect. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367><SPAN  CLASS="textbf">Purpose</SPAN></TD>
+
<tr><td> [[File:union.png|26px]] <td> Union <td> Overlay layers such  
</TR>
+
that output contains intersecting and non-intersecting areas. </tr>
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]convex_hull</TD>
+
<tr><td> [[File:sym_difference.png|26px]] <td> Symetrical difference <td>  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=58>Convex hull(s)</TD>
+
Overlay layers such that output contains those areas of the input and  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367>Create  
+
difference layers that do not intersect. </tr>
minimum convex hull(s) for an input layer, or based on an ID field.</TD>
+
<tr><td> [[File:clip.png|26px]] <td> Clip <td> Overlay layers such  
</TR>
+
that output contains areas that intersect the clip layer. </tr>
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]buffer</TD>
+
<tr><td> [[File:difference.png|26px]] <td> Difference <td> Overlay layers  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=58>Buffer(s)</TD>
+
such that output contains areas not intersecting the clip layer. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367>Create  
+
<tr><td> [[File:dissolve.png|26px]] <td> Dissolve <td> Merge features  
buffer(s) around features based on distance, or distance field.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]intersect</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=58>Intersect</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367>Overlay  
+
layers such that output contains areas where both layers intersect.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]union</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=58>Union</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367>Overlay layers such  
+
that output contains intersecting and non-intersecting areas.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]sym_difference</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=58>Symetrical difference</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367>Overlay layers such that output contains those areas of the input and  
+
difference layers that do not intersect.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]clip</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=58>Clip</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367>Overlay layers such  
+
that output contains areas that intersect the clip layer.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]difference</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=58>Difference</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367>Overlay layers  
+
such that output contains areas not intersecting the clip layer.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]dissolve</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=58>Dissolve</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367>Merge features  
+
 
based on input field. All features with indentical input values are combined  
 
based on input field. All features with indentical input values are combined  
to form one single feature.</TD>
+
to form one single feature. </tr>
</TR>
+
</table>
</TABLE>
+
</DIV>
+
<BR>
+
  
<P>
 
<BR><P></P>
 
<DIV ALIGN="CENTER">
 
<A NAME="83"></A>
 
<DIV ALIGN="CENTER">
 
  
</DIV><A NAME="tab:ftool_geometry"></A><P>
+
<table border='1' align='center'><caption>'''表 9:''' fTools Geometry tools</caption><span id='tab:ftool_geometry'></span>
<BR>
+
<!-- {|p{0.3in}|p{1.2in}|p{4.8in}|} -->
<A NAME="84"></A>
+
<tr><td colspan='3'>'''Geometry tools available via the fTools plugin'''<tr>
<TABLE CELLPADDING=3 BORDER="1">
+
<tr><td width='29'> '''Icon''' <td width='115'> '''Tool''' <td width='461'> '''Purpose''' </tr>
<CAPTION><STRONG>Table 9:</STRONG>
+
<tr><td> [[File:check_geometry.png|26px]] <td> Check geometry <td>  
fTools Geometry tools</CAPTION>
+
Check polygons for intersections, closed-holes, and fix node ordering. </tr>
<TR><TD ALIGN="CENTER" COLSPAN=3><SPAN><SPAN  CLASS="textbf">Geometry tools available via the fTools plugin</SPAN></SPAN></TD>
+
<tr><td> [[File:export_geometry.png|26px]] <td> Export/Add geometry  
</TR>
+
columns <td> Add vector layer geometry info to point (XCOORD, YCOORD),  
<TR><TH ALIGN="LEFT" VALIGN="TOP" WIDTH=22><SPAN  CLASS="textbf">Icon</SPAN></TH>
+
line (LENGTH), or polygon (AREA, PERIMETER) layer. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86><SPAN  CLASS="textbf">Tool</SPAN></TD>
+
<tr><td> [[File:centroids.png|26px]] <td> Polygon centroids <td>  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346><SPAN  CLASS="textbf">Purpose</SPAN></TD>
+
Calculate the true centroids for each polygon in an input polygon layer. </tr>
</TR>
+
<tr><td> [[File:delaunay.png|26px]] <td> Delaunay triangulation <td>  
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]check_geometry</TD>
+
Calculate and output (as polygons) the delaunay triangulation of an input point vector layer. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Check geometry</TD>
+
<tr><td> [[File:simplify.png|26px]] <td> Simplify geometry <td>  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Check polygons for intersections, closed-holes, and fix node ordering.</TD>
+
Generalise lines or polygons with a modified Douglas-Peucker algorithm. </tr>
</TR>
+
<tr><td> [[File:multi_to_single.png|26px]] <td> Multipart to  
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]export_geometry</TD>
+
singleparts <td> Convert multipart features to multiple singlepart features.  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Export/Add geometry  
+
Creates simple polygons and lines. </tr>
columns</TD>
+
<tr><td> [[File:single_to_multi.png|26px]] <td> Singleparts to  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Add vector layer geometry info to point (XCOORD, YCOORD),  
+
multipart <td> Merge multiple features to a single multipart feature based  
line (LENGTH), or polygon (AREA, PERIMETER) layer.</TD>
+
on a unique ID field. </tr>
</TR>
+
<tr><td> [[File:to_lines.png|26px]] <td> Polygons to lines  
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]centroids</TD>
+
<td> Convert polygons to lines, multipart polygons to multiple singlepart lines. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Polygon centroids</TD>
+
<tr><td> [[File:extract_nodes.png|26px]] <td> Extract nodes <td>  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Calculate the true centroids for each polygon in an input polygon layer.</TD>
+
Extract nodes from line and polygon layers and output them as points. </tr>
</TR>
+
</table>
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]delaunay</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Delaunay triangulation</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Calculate and output (as polygons) the delaunay triangulation of an input point vector layer.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]simplify</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Simplify geometry</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Generalise lines or polygons with a modified Douglas-Peucker algorithm.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]multi_to_single</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Multipart to  
+
singleparts</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Convert multipart features to multiple singlepart features.  
+
Creates simple polygons and lines.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]single_to_multi</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Singleparts to  
+
multipart</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Merge multiple features to a single multipart feature based  
+
on a unique ID field.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]to_lines</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Polygons to lines</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Convert polygons to lines, multipart polygons to multiple singlepart lines.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]extract_nodes</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Extract nodes</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Extract nodes from line and polygon layers and output them as points.</TD>
+
</TR>
+
</TABLE>
+
</DIV>
+
<BR>
+
  
<P>
 
<BR><P></P>
 
<DIV ALIGN="CENTER">
 
<A NAME="108"></A>
 
<DIV ALIGN="CENTER">
 
  
</DIV><A NAME="tab:fTool_data_management"></A><P>
+
<table border='1' align='center'><caption>'''表 10:''' fTools Data management tools</caption><span id='tab:fTool_data_management'></span>
<BR>
+
<!-- {|p{0.3in}|p{1.3in}|p{4.6in}|} -->
<A NAME="109"></A>
+
<tr><td colspan='3'>'''Data management tools available via the fTools plugin'''<tr>
<TABLE CELLPADDING=3 BORDER="1">
+
<tr><td width=29'> '''Icon''' <td width='125'> '''Tool''' <td width='442'> '''Purpose''' </tr>
<CAPTION><STRONG>Table 10:</STRONG>
+
<tr><td> [[File:export_projection.png|26px]] <td> Export to projection <td>  
fTools Data management tools</CAPTION>
+
Project features to new CRS and export as new shapefile. </tr>
<TR><TD ALIGN="CENTER" COLSPAN=3><SPAN><SPAN  CLASS="textbf">Data management tools available via the fTools plugin</SPAN></SPAN></TD>
+
<tr><td> [[File:define_projection.png|26px]] <td> Define projection <td>  
</TR>
+
Specify the CRS for shapefiles whose CRS has not been defined. </tr>
<TR><TH ALIGN="LEFT" VALIGN="TOP" WIDTH=22><SPAN  CLASS="textbf">Icon</SPAN></TH>
+
<tr><td> [[File:join_attributes.png|26px]] <td> Join attributes <td> Join  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94><SPAN  CLASS="textbf">Tool</SPAN></TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331><SPAN  CLASS="textbf">Purpose</SPAN></TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]export_projection</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Export to projection</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Project features to new CRS and export as new shapefile.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]define_projection</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Define projection</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Specify the CRS for shapefiles whose CRS has not been defined.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]join_attributes</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Join attributes</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Join  
+
 
additional attributes to vector layer attribute table and output results  
 
additional attributes to vector layer attribute table and output results  
 
to a new shapefile. Additional attributes can be from a vector layer or  
 
to a new shapefile. Additional attributes can be from a vector layer or  
stand-alone dbf table.</TD>
+
stand-alone dbf table. </tr>
</TR>
+
<tr><td> [[File:join_location.png|26px]] <td> Join attributes by  
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]join_location</TD>
+
location <td> Join additional attributes to vector layer based on spatial  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Join attributes by  
+
location</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Join additional attributes to vector layer based on spatial  
+
 
relationship. Attributes from one vector layer are appended to the attribute  
 
relationship. Attributes from one vector layer are appended to the attribute  
table of another layer and exported as a shapefile</TD>
+
table of another layer and exported as a shapefile </tr>
</TR>
+
<tr><td> [[File:split_layer.png|26px]] <td> Split vector layer <td>  
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]split_layer</TD>
+
Split input layer into multiple separate layers based on input field. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Split vector layer</TD>
+
</table>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Split input layer into multiple separate layers based on input field.</TD>
+
</TR>
+
</TABLE>
+
</DIV>
+
<BR>
+
 
+
<P>
+

2009年10月5日 (月) 22:33時点における最新版

fTools Plugin

The goal of the fTools python plugin is to provide a one-stop resource for many common vector-based GIS tasks, without the need for additional software, libraries, or complex workarounds. It provides a growing suite of spatial data management and analysis functions that are both fast and functional.

fTools is now automatically installed and enabled in new versions of QGIS, and as with all plugins, it can be disabled and enabled using the Plugin Manager (See Section sec:managing_plugins). When enabled, the fTools plugin adds a Tools menu to QGIS, providing functions ranging from Analysis and Research Tools to Geometry and Geoprocessing Tools, as well as several useful Data Management Tools.

fTools functions

Tables 6 through 10 list the functions available via the fTools plugin, along with a brief description of each function. For further information on an individual fTools function, please click the fTools Information menu item in the Tools menu.


表 6: fTools Analysis tools
Analysis tools available via the fTools plugin
Icon Tool Purpose
Matrix.png Distance Matrix

Measure distances between two point layers, and output results as a) Square distance matrix, b) Linear distance matrix, or c) Summary of distances. Can

limit distances to the k nearest features.
Sum lines.png Sum line length Calculate the total sum of line lengths for each polygon of a polygon vector layer.
Sum points.png Points in polygon Count

the number of points that occur in each polygon of an input polygon vector

layer.
Unique.png List unique values List all unique values in an input vector layer field.
Basic statistics.png Basic statistic Compute basic statistics (mean, std dev, N, sum, CV) on an input field.
Neighbour.png Nearest Neighbor analysis Compute nearest neighbour statistics to assess the level of clustering in a point vector layer.
Mean.png Mean coordinate(s)

Compute either the normal or weighted mean center of an entire vector layer,

or multiple features based on a unique ID field.
Intersections.png Line intersections

Locate intersections between lines, and output results as a point shapefile. Useful for locating road or stream intersections, ignores line intersections

with length > 0.


表 7: fTools Research tools
Research tools available via the fTools plugin
Icon Tool Purpose
Random selection.png Random selection Randomly select n number of features, or n percentage of features
Sub selection.png Random selection within subsets Randomly select features within subsets based on a unique ID field.
Random points.png Random points Generate pseudo-random points over a given input layer.
Regular points.png Regular points Generate a regular grid of points over a specified region and export them as a point shapefile.
Vector grid.png Vector grid Generate a line or polygon grid based on user specified grid spacing.
Select location.png Select by location

Select features based on their location relative to another layer to form a

new selection, or add or subtract from the current selection.
Layer extent.png Polygon from layer extent Create a single rectangular polygon layer from the extent of an input raster or vector layer.


表 8: fTools Geoprocessing tools
Geoprocessing tools available via the fTools plugin
Icon Tool Purpose
Convex hull.png Convex hull(s) Create minimum convex hull(s) for an input layer, or based on an ID field.
Buffer.png Buffer(s) Create buffer(s) around features based on distance, or distance field.
Intersect.png Intersect Overlay layers such that output contains areas where both layers intersect.
Union.png Union Overlay layers such that output contains intersecting and non-intersecting areas.
Sym difference.png Symetrical difference

Overlay layers such that output contains those areas of the input and

difference layers that do not intersect.
Clip.png Clip Overlay layers such that output contains areas that intersect the clip layer.
Difference.png Difference Overlay layers such that output contains areas not intersecting the clip layer.
Dissolve.png Dissolve Merge features

based on input field. All features with indentical input values are combined

to form one single feature.


表 9: fTools Geometry tools
Geometry tools available via the fTools plugin
Icon Tool Purpose
Check geometry.png Check geometry Check polygons for intersections, closed-holes, and fix node ordering.
Export geometry.png Export/Add geometry columns Add vector layer geometry info to point (XCOORD, YCOORD), line (LENGTH), or polygon (AREA, PERIMETER) layer.
Centroids.png Polygon centroids Calculate the true centroids for each polygon in an input polygon layer.
Delaunay.png Delaunay triangulation Calculate and output (as polygons) the delaunay triangulation of an input point vector layer.
Simplify.png Simplify geometry Generalise lines or polygons with a modified Douglas-Peucker algorithm.
Multi to single.png Multipart to singleparts Convert multipart features to multiple singlepart features. Creates simple polygons and lines.
Single to multi.png Singleparts to multipart Merge multiple features to a single multipart feature based on a unique ID field.
To lines.png Polygons to lines Convert polygons to lines, multipart polygons to multiple singlepart lines.
Extract nodes.png Extract nodes Extract nodes from line and polygon layers and output them as points.


表 10: fTools Data management tools
Data management tools available via the fTools plugin
Icon Tool Purpose
Export projection.png Export to projection Project features to new CRS and export as new shapefile.
Define projection.png Define projection Specify the CRS for shapefiles whose CRS has not been defined.
Join attributes.png Join attributes Join

additional attributes to vector layer attribute table and output results to a new shapefile. Additional attributes can be from a vector layer or

stand-alone dbf table.
Join location.png Join attributes by location Join additional attributes to vector layer based on spatial

relationship. Attributes from one vector layer are appended to the attribute

table of another layer and exported as a shapefile
Split layer.png Split vector layer Split input layer into multiple separate layers based on input field.