If the output parameter is not given then the coordinates of any point data within the vector file is sent to stdout.
If the format parameter is set to standard, A GRASS ASCII vector file 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 standard format is given below.
The primitive codes are as follows:
The order of coordinates for new (standard) version of ASCII file is
X Y [Z]
the order of coordinates for old version of ASCII file is
Y X
If old version is requested, the output files from v.out.ascii will be placed in the $LOCATION/$MAPSET/dig_ascii/ and $LOCATION/$MAPSET/dig_att directory.
Only features with a category number will be exported. Use v.category to add them if needed.
v.out.ascii does not copy the dig_cats file associated with the binary vector input map to the new output file name. The user must copy the dig_cats file to the new output name if this is desired (e.g., using the UNIX cp command).
It is possible to output the coordinates of vertices in a non-points vector feature by first converting the vector feature to a points map with v.to.points and then exporting with v.out.ascii in points mode.
v.out.ascii input=quads format=standard ORGANIZATION: US Army Const. Eng. Rsch. Lab DIGIT DATE: May 1987 DIGIT NAME: grass MAP NAME: Quads MAP DATE: May 1987 MAP SCALE: 24000 OTHER INFO: ZONE: 13 MAP THRESH: 18.288000 VERTI: B 4 599587.1820962 4914067.53414294 589639.15126831 4913922.5687301 589440.96838162 4927803.62500018 599375.87959179 4927959.83330436 B 2 599375.87959179 4927959.83330436 599587.1820962 4914067.53414294 B 4 599587.1820962 4914067.53414294 609541.5508239 4914236.0597482 609316.10665227 4928116.8490555 599375.87959179 4927959.83330436 C 1 1 594125.63 4921115.58 1 1 C 1 1 604433.84 4921087.1 1 2
v.out.ascii input=quads format=point 594125.63|4921115.58|1 604433.84|4921087.1|2
Last changed: $Date: 2006/08/31 14:25:37 $