|
@@ -1,68 +1,73 @@
|
|
|
<h2>DESCRIPTION</h2>
|
|
|
|
|
|
-<em>v.out.ascii</em>
|
|
|
-converts a GRASS vector map in binary format to a GRASS vector map in ASCII
|
|
|
-format. Using flag <b>-o</b> <em>v.out.ascii</em> output will be in old
|
|
|
-(version 4) ASCII format.
|
|
|
-<P>
|
|
|
+<em>v.out.ascii</em> converts a GRASS vector map in binary format to a
|
|
|
+GRASS vector map in ASCII format. Using
|
|
|
+flag <b>-o</b> <em>v.out.ascii</em> output will be in old (version 4)
|
|
|
+ASCII format.
|
|
|
+
|
|
|
+<p>
|
|
|
If the <b>output</b> parameter is not given then the coordinates of any
|
|
|
<em>point</em> data within the vector map is sent to stdout.
|
|
|
|
|
|
<h2>NOTES</h2>
|
|
|
|
|
|
-The GRASS program <em><a HREF="v.in.ascii.html">v.in.ascii</a></em>
|
|
|
-performs the function of <em>v.out.ascii</em> in reverse; i.e., it
|
|
|
-converts vector maps in ASCII format to their binary format.
|
|
|
-These two companion programs are useful both for importing and exporting
|
|
|
-vector maps between GRASS and other software, and for transferring data
|
|
|
+The <em><a href="v.in.ascii.html">v.in.ascii</a></em> module performs
|
|
|
+the function of <em>v.out.ascii</em> in reverse; i.e. it converts
|
|
|
+vector maps in ASCII format to their binary format. These two
|
|
|
+companion module are useful both for importing and exporting vector
|
|
|
+maps between GRASS and other software, and for transferring data
|
|
|
between machines.
|
|
|
|
|
|
-<P>
|
|
|
-If the <b>format</b> parameter is set to <b>standard</b>, A GRASS ASCII vector map will be exported,
|
|
|
-which may contain a mix of primitives including points, lines, boundaries, centroids, areas, faces,
|
|
|
-and kernels. The beginning of the output ascii file will contain a header listing any metadata for the
|
|
|
-input vector, if such metadata exists. An example of the <b>standard</b> format is given below.
|
|
|
-<P>
|
|
|
-The primitive codes are as follows:
|
|
|
-<UL>
|
|
|
-<LI>'P': point</LI>
|
|
|
-<LI>'L': line</LI>
|
|
|
-<LI>'B': boundary</LI>
|
|
|
-<LI>'C': centroid</LI>
|
|
|
-<LI>'F': face (3D boundary)</LI>
|
|
|
-<LI>'K': kernel (3D centroid)</LI>
|
|
|
-<LI>'A': area (boundary) - better use 'B'; kept only for backward compatibility</LI>
|
|
|
+<o>
|
|
|
+If the <b>format</b> parameter is set to <b>standard</b>, a GRASS
|
|
|
+ASCII vector map will be exported, which may contain a mix of
|
|
|
+primitives including points, lines, boundaries, centroids, areas,
|
|
|
+faces, and kernels. The beginning of the output ascii file will
|
|
|
+contain a header listing any metadata for the input vector map, if
|
|
|
+such metadata exists. An example of the <b>standard</b> format is
|
|
|
+given below.
|
|
|
|
|
|
-</UL>
|
|
|
+<p>
|
|
|
+The primitive codes are as follows:
|
|
|
+<ul>
|
|
|
+<li>'P': point</li>
|
|
|
+<li>'L': line</li>
|
|
|
+<li>'B': boundary</li>
|
|
|
+<li>'C': centroid</li>
|
|
|
+<li>'F': face (3D boundary)</li>
|
|
|
+<li>'K': kernel (3D centroid)</li>
|
|
|
+<li>'A': area (boundary) - better use 'B'; kept only for backward compatibility</li>
|
|
|
+</ul>
|
|
|
|
|
|
The coordinates are listed following the initial line containing the
|
|
|
-primitive code, the total number of vectors in the series, and the number
|
|
|
-of categories (1 for a single layer, higher for multiple layers).
|
|
|
-Below that 1 or several lines follow to indicate the layer number and
|
|
|
-the category number (ID).
|
|
|
-<BR>
|
|
|
+primitive code, the total number of vectors in the series, and the
|
|
|
+number of categories (1 for a single layer, higher for multiple
|
|
|
+layers). Below that 1 or several lines follow to indicate the layer
|
|
|
+number and the category number.
|
|
|
+
|
|
|
<p>
|
|
|
-The order of coordinates for new (standard) version of ASCII file is <BR><BR>
|
|
|
+The order of coordinates for new (standard) version of ASCII file is
|
|
|
+<div class="code"><pre>
|
|
|
X Y [Z]
|
|
|
-<BR><BR>
|
|
|
-the order of coordinates for old version of ASCII file is <BR><BR>
|
|
|
+</pre></div>
|
|
|
+the order of coordinates for old version of ASCII file is
|
|
|
+<div class="code"><pre>
|
|
|
Y X
|
|
|
+</pre></div>
|
|
|
|
|
|
-<p>
|
|
|
-If old version is requested, the <B>output</B> files from <em>v.out.ascii</em> will be placed
|
|
|
+If old version is requested, the <b>output</b> files from <em>v.out.ascii</em> will be placed
|
|
|
in the <tt>$LOCATION/$MAPSET/dig_ascii/</tt> and <tt>$LOCATION/$MAPSET/dig_att</tt> directory.
|
|
|
|
|
|
<p>
|
|
|
-Only features with a category number will be exported. Use <em>v.category</em>
|
|
|
-to add them if needed.
|
|
|
+Only features with a category number will be
|
|
|
+exported. Use <em>v.category</em> to add them if needed.
|
|
|
|
|
|
<p>
|
|
|
-<em>v.out.ascii</em> does not copy the <em>dig_cats</em>
|
|
|
-file associated with the binary vector <em>input</em> map
|
|
|
-to the new <em>output</em> file name. The user must copy
|
|
|
-the <em>dig_cats</em> file to the new <em>output</em> name
|
|
|
-if this is desired (e.g., using the UNIX <em>cp</em>
|
|
|
-command).
|
|
|
+<em>v.out.ascii</em> does not copy the <em>dig_cats</em> file
|
|
|
+associated with the binary vector <em>input</em> map to the
|
|
|
+new <em>output</em> file name. The user must copy
|
|
|
+the <em>dig_cats</em> file to the new <em>output</em> name if this is
|
|
|
+desired (e.g. using the UNIX <em>cp</em> command).
|
|
|
|
|
|
<p>
|
|
|
It is possible to output the coordinates of vertices in a non-points vector
|
|
@@ -72,7 +77,7 @@ feature by first converting the vector feature to a points map with
|
|
|
|
|
|
<h2>EXAMPLES</h2>
|
|
|
|
|
|
-<h3>Example 1a) - standard mode - using the 'quads' vector from Spearfish dataset:</h3>
|
|
|
+<h3>Standard mode</h3>
|
|
|
|
|
|
<p>
|
|
|
<div class="code"><pre>
|
|
@@ -109,9 +114,8 @@ C 1 1
|
|
|
1 2
|
|
|
</pre></div>
|
|
|
|
|
|
-<h3>Example 1b) - point mode</h3>
|
|
|
+<h3>Point mode</h3>
|
|
|
|
|
|
-<p>
|
|
|
<div class="code"><pre>
|
|
|
v.out.ascii input=quads format=point
|
|
|
|
|
@@ -119,15 +123,24 @@ v.out.ascii input=quads format=point
|
|
|
604433.84|4921087.1|2
|
|
|
</pre></div>
|
|
|
|
|
|
+<div class="code"><pre>
|
|
|
+v.out.ascii input=archsites format=point where="cat > 5 and cat <= 8" columns=str1
|
|
|
+
|
|
|
+600375|4925235|6|Prairie Site
|
|
|
+606635|4920773|7|Jensen Pass
|
|
|
+595755|4925300|8|No Name
|
|
|
+</pre></div>
|
|
|
+
|
|
|
<h2>SEE ALSO</h2>
|
|
|
|
|
|
<em>
|
|
|
-<a HREF="v.category.html">v.category</a><BR>
|
|
|
-<a HREF="v.in.ascii.html">v.in.ascii</a><BR>
|
|
|
-<a HREF="v.to.points.html">v.to.points</a></em><BR>
|
|
|
-<a HREF="http://freegis.org/cgi-bin/viewcvs.cgi/~checkout~/grass6/doc/vector/vector.html#ascii">Vector ASCII Format Specification</a>
|
|
|
-<BR><BR>
|
|
|
+<a href="v.category.html">v.category</a>,
|
|
|
+<a href="v.in.ascii.html">v.in.ascii</a>,
|
|
|
+<a href="v.to.points.html">v.to.points</a></em>
|
|
|
|
|
|
+<br><br>
|
|
|
+<a HREF="http://freegis.org/cgi-bin/viewcvs.cgi/~checkout~/grass6/doc/vector/vector.html#ascii">Vector
|
|
|
+ASCII Format Specification</a>
|
|
|
|
|
|
<h2>AUTHORS</h2>
|
|
|
|
|
@@ -140,5 +153,8 @@ U.S. Army Construction Engineering
|
|
|
Research Laboratory
|
|
|
<br>
|
|
|
Radim Blazek, ITC-Irst, Trento, Italy
|
|
|
+<br>
|
|
|
+Attribute selection added by Martin Landa, CTU in Prague, Czech Republic (2008/12)
|
|
|
|
|
|
-<p><i>Last changed: $Date$</i>
|
|
|
+<p>
|
|
|
+<i>Last changed: $Date$</i>
|