「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…)
 
(タグ一括置換状態で一旦保存)
行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]] through [[tab:fTool_data_management]] 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>
+
<table border='1' align='center'><caption>'''Table xx:''' fTools Analysis tools</caption><span id='tab:ftool_analysis'></span>
<BR><P></P>
+
<!-- {|p{0.3in}|p{1.2in}|p{4.7in}|} -->
<DIV ALIGN="CENTER">
+
<tr><td colspan='3'>'''Analysis tools available via the fTools plugin'''<tr>
<A NAME="12"></A>
+
<tr><td> '''Icon''' <td> '''Tool''' <td> '''Purpose''' </tr>
<DIV ALIGN="CENTER">
+
  <tr><td> [[File:matrix.png|26px]] <td> Distance Matrix <td>
 
+
Measure distances between two point layers, and output results as a) Square
</DIV><A NAME="tab:ftool_analysis"></A><P>
+
<BR>
+
<A NAME="13"></A>
+
<TABLE CELLPADDING=3 BORDER="1">
+
<CAPTION><STRONG>Table 6:</STRONG>
+
fTools Analysis tools</CAPTION>
+
<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>
+
<table border='1' align='center'><caption>'''Table xx:''' fTools Research tools</caption><span id='tab:ftool_research'></span>
<BR><P></P>
+
<!-- {|p{0.3in}|p{1.3in}|p{4.6in}|} -->
<DIV ALIGN="CENTER">
+
<tr><td colspan='3'>'''Research tools available via the fTools plugin'''<tr>
<A NAME="36"></A>
+
<tr><td> '''Icon''' <td> '''Tool''' <td> '''Purpose''' </tr>
<DIV ALIGN="CENTER">
+
<tr><td> [[File:random_selection.png|26px]] <td> Random selection <td> Randomly
 +
select n number of features, or n percentage of features </tr>
 +
<tr><td> [[File:sub_selection.png|26px]] <td> Random selection within
 +
subsets <td> Randomly select features within subsets based on a unique ID field. </tr>
 +
<tr><td> [[File:random_points.png|26px]] <td> Random points <td> Generate
 +
pseudo-random points over a given input layer. </tr>
 +
<tr><td> [[File:regular_points.png|26px]] <td> Regular points <td> Generate
 +
a regular grid of points over a specified region and export them as a point shapefile. </tr>
 +
<tr><td> [[File:vector_grid.png|26px]] <td> Vector grid <td> Generate a
 +
line or polygon grid based on user specified grid spacing. </tr>
 +
<tr><td> [[File:select_location.png|26px]] <td> Select by location <td>
 +
Select features based on their location relative to another layer to form a
 +
new selection, or add or subtract from the current selection. </tr>
 +
<tr><td> [[File:layer_extent.png|26px]] <td> Polygon from layer extent <td>
 +
Create a single rectangular polygon layer from the extent of an input raster or vector layer. </tr>
 +
</table>
  
</DIV><A NAME="tab:ftool_research"></A><P>
+
<table border='1' align='center'><caption>'''Table xx:''' fTools Geoprocessing tools</caption><span id='tab:ftool_geoprocessing'></span>
<BR>
+
  <!-- {|p{0.3in}|p{0.8in}|p{5.1in}|} -->
<A NAME="37"></A>
+
<tr><td colspan='3'>'''Geoprocessing tools available via the fTools plugin'''<tr>
<TABLE CELLPADDING=3 BORDER="1">
+
<tr><td> '''Icon''' <td> '''Tool''' <td> '''Purpose''' </tr>
<CAPTION><STRONG>Table 7:</STRONG>
+
  <tr><td> [[File:convex_hull.png|26px]] <td> Convex hull(s) <td> Create  
fTools Research 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">Research 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=94><SPAN  CLASS="textbf">Tool</SPAN></TD>
+
layers such that output contains areas where both layers intersect. </tr>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331><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]random_selection</TD>
+
<tr><td> [[File:sym_difference.png|26px]] <td> Symetrical difference <td>  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Random selection</TD>
+
Overlay layers such that output contains those areas of the input and  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=331>Randomly
+
difference layers that do not intersect. </tr>
select n number of features, or n percentage of features</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]sub_selection</TD>
+
<tr><td> [[File:difference.png|26px]] <td> Difference <td> Overlay layers  
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Random selection within
+
such that output contains areas not intersecting the clip layer. </tr>
subsets</TD>
+
<tr><td> [[File:dissolve.png|26px]] <td> Dissolve <td> Merge features  
<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>
+
<BR>
+
<A NAME="60"></A>
+
<TABLE CELLPADDING=3 BORDER="1">
+
<CAPTION><STRONG>Table 8:</STRONG>
+
fTools Geoprocessing tools</CAPTION>
+
<TR><TD ALIGN="CENTER" COLSPAN=3><SPAN><SPAN  CLASS="textbf">Geoprocessing 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=58><SPAN  CLASS="textbf">Tool</SPAN></TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367><SPAN CLASS="textbf">Purpose</SPAN></TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]convex_hull</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=58>Convex hull(s)</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367>Create  
+
minimum convex hull(s) for an input layer, or based on an ID field.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]buffer</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=58>Buffer(s)</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=367>Create  
+
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>
+
<table border='1' align='center'><caption>'''Table xx:''' fTools Geometry tools</caption><span id='tab:ftool_geometry'></span>
<BR><P></P>
+
<!-- {|p{0.3in}|p{1.2in}|p{4.8in}|} -->
<DIV ALIGN="CENTER">
+
<tr><td colspan='3'>'''Geometry tools available via the fTools plugin'''<tr>
<A NAME="83"></A>
+
<tr><td> '''Icon''' <td> '''Tool''' <td> '''Purpose''' </tr>
<DIV ALIGN="CENTER">
+
<tr><td> [[File:check_geometry.png|26px]] <td> Check geometry <td>
 +
Check polygons for intersections, closed-holes, and fix node ordering. </tr>
 +
<tr><td> [[File:export_geometry.png|26px]] <td> Export/Add geometry
 +
columns <td> Add vector layer geometry info to point (XCOORD, YCOORD),
 +
line (LENGTH), or polygon (AREA, PERIMETER) layer. </tr>
 +
<tr><td> [[File:centroids.png|26px]] <td> Polygon centroids <td>
 +
Calculate the true centroids for each polygon in an input polygon layer. </tr>
 +
<tr><td> [[File:delaunay.png|26px]] <td> Delaunay triangulation <td>
 +
Calculate and output (as polygons) the delaunay triangulation of an input point vector layer. </tr>
 +
<tr><td> [[File:simplify.png|26px]] <td> Simplify geometry <td>
 +
Generalise lines or polygons with a modified Douglas-Peucker algorithm. </tr>
 +
<tr><td> [[File:multi_to_single.png|26px]] <td> Multipart to
 +
singleparts <td> Convert multipart features to multiple singlepart features.
 +
Creates simple polygons and lines. </tr>
 +
<tr><td> [[File:single_to_multi.png|26px]] <td> Singleparts to
 +
multipart <td> Merge multiple features to a single multipart feature based
 +
on a unique ID field. </tr>
 +
<tr><td> [[File:to_lines.png|26px]] <td> Polygons to lines
 +
<td> Convert polygons to lines, multipart polygons to multiple singlepart lines. </tr>
 +
<tr><td> [[File:extract_nodes.png|26px]] <td> Extract nodes <td>
 +
Extract nodes from line and polygon layers and output them as points. </tr>
 +
</table>
  
</DIV><A NAME="tab:ftool_geometry"></A><P>
+
<table border='1' align='center'><caption>'''Table xx:''' fTools Data management tools</caption><span id='tab:fTool_data_management'></span>
<BR>
+
  <!-- {|p{0.3in}|p{1.3in}|p{4.6in}|} -->
<A NAME="84"></A>
+
<tr><td colspan='3'>'''Data management tools available via the fTools plugin'''<tr>
<TABLE CELLPADDING=3 BORDER="1">
+
<tr><td> '''Icon''' <td> '''Tool''' <td> '''Purpose''' </tr>
<CAPTION><STRONG>Table 9:</STRONG>
+
  <tr><td> [[File:export_projection.png|26px]] <td> Export to projection <td>  
fTools Geometry tools</CAPTION>
+
Project features to new CRS and export as new shapefile. </tr>
<TR><TD ALIGN="CENTER" COLSPAN=3><SPAN><SPAN  CLASS="textbf">Geometry 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=86><SPAN  CLASS="textbf">Tool</SPAN></TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346><SPAN  CLASS="textbf">Purpose</SPAN></TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]check_geometry</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Check geometry</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Check polygons for intersections, closed-holes, and fix node ordering.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]export_geometry</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Export/Add geometry
+
columns</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Add vector layer geometry info to point (XCOORD, YCOORD),
+
line (LENGTH), or polygon (AREA, PERIMETER) layer.</TD>
+
</TR>
+
<TR><TD ALIGN="LEFT" VALIGN="TOP" WIDTH=22>[width=0.7cm]centroids</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=86>Polygon centroids</TD>
+
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=346>Calculate the true centroids for each polygon in an input polygon layer.</TD>
+
</TR>
+
<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>
+
<BR>
+
<A NAME="109"></A>
+
<TABLE CELLPADDING=3 BORDER="1">
+
<CAPTION><STRONG>Table 10:</STRONG>
+
fTools Data management tools</CAPTION>
+
<TR><TD ALIGN="CENTER" COLSPAN=3><SPAN><SPAN  CLASS="textbf">Data management 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=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:16時点における版

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 tab:ftool_analysis through tab:fTool_data_management 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.

Table xx: 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.
Table xx: 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.
Table xx: 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.
Table xx: 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.
Table xx: 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.