write.pts2grass {pgirmess}R Documentation

Convert a matrix of points coordinates (x,y) into an ascii GRASS vector file (lines).

Description

Convert a matrix of points coordinates (x,y) into an ascii GRASS vector file (lines).

Usage

write.pts2grass(poly.shp, name)

Arguments

poly.shp A matrix or data.frame of points coordinates, column 1 = x, column 2 = y
name The name of the output file (ex: "monfichier.txt"

Details

Write an ascii GRASS vector file (lines) that can be imported from GRASS.

Value

A file is written in the directory specified in filename or in the current working directory.

Author(s)

Patrick Giraudoux pgiraudo@univ-fcomte.fr

See Also

write.cl2grass

Examples

x<-rnorm(30)
y<-rnorm(30)
write.pts2grass(cbind(x,y),"myfile.txt")
# check the new file "myfile.txt"in the working directory
 

[Package pgirmess version 1.3.8 Index]