other versions
- jessie 6.4.4-1
- stretch 7.2.0-2
- testing 7.6.0-1
- unstable 7.6.0-1
- experimental 7.6.1-1~exp1
| v.out.ascii(1grass) | Grass User's Manual | v.out.ascii(1grass) |
NAME¶
v.out.ascii - Converts a GRASS binary vector map to a GRASS ASCII vector map.KEYWORDS¶
vector, exportSYNOPSIS¶
v.out.asciiFlags:¶
- -o
-
Create old (version 4) ASCII file
- -r
-
Only export points falling within current 3D region (points mode)
- --verbose
-
Verbose module output
- --quiet
-
Quiet module output
Parameters:¶
- input=name
-
Name of input vector map
- output=name
-
Path to resulting ASCII file or ASCII vector name if '-o' is defined
- format=string
-
Output formatOptions: point,standardDefault: point
- fs=character
-
Field separatorField separator (points mode)Default: |
- dp=integer
-
Number of significant digits (floating point only)Options: 0-32Default: 8
- layer=integer
-
Layer numberA single vector map can be connected to multiple database tables. This number determines which table to use.Default: 1
- columns=name[,name,...]
-
Name of attribute column(s) to be exported (point mode)
- where=sql_query
-
WHERE conditions of SQL statement without 'where' keywordExample: income = 10000
DESCRIPTION¶
v.out.ascii converts a GRASS vector map in binary format to a GRASS vector map in ASCII format. Using flag -o v.out.ascii output will be in old (version 4) ASCII format. If the output parameter is not given then the coordinates of any point data within the vector map is sent to stdout.NOTES¶
The v.in.ascii module performs the function of v.out.ascii 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. If the format parameter is set to standard, 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 standard format is given below. The header is similar as the head file of vector binary format but contains bounding box also. Key words are:X Y [Z]
X Y [Z]
- ’P': point
- ’L': line
- ’B': boundary
- ’C': centroid
- ’F': face (3D boundary)
- ’K': kernel (3D centroid)
- ’A': area (boundary) - better use 'B'; kept only for backward compatibility
X Y [Z]
EXAMPLES¶
Standard mode¶
599587.1820962 4914067.53414294
589639.15126831 4913922.5687301
589440.96838162 4927803.62500018
599375.87959179 4927959.83330436
599375.87959179 4927959.83330436
599587.1820962 4914067.53414294
599587.1820962 4914067.53414294
609541.5508239 4914236.0597482
609316.10665227 4928116.8490555
599375.87959179 4927959.83330436
594125.63 4921115.58
1 1
604433.84 4921087.1
1 2
Point mode¶
SEE ALSO¶
v.category, v.in.ascii, v.to.pointsAUTHORS¶
Michael Higgins, U.S. Army Construction Engineering Research Laboratory| GRASS 6.4.4 |