[GRASS-user] vector from xyz (newbie)

Hamish hamish_nospam at yahoo.com
Sat May 27 00:30:53 EDT 2006


> Ultimately, I would like to build a raster and do terrain analysis
> from  a group of xyz coordinates.
> I have been trying to build a vector map that I could then
> interpolate,  but am having trouble...
> My data is in a .csv file exported from R

no spaces at the end of the lines or anything?
what do a few lines of data look like?

> (but have since figured that I need to open and resave as .csv with
> excel (Why?)):

Certainly not the case, unless export from R is unclean.


> [image.tiff  image/tiff (27230 bytes)]

that's blank?

> I created a new location for the data and tried to import with:
> v.in.ascii 
> input=/Users/geoscience/Documents/GIS/grassData/Lachmach2/lm2.csv 
> output=p1 format=point fs=, skip=1 x=1 y=2 z=3 cat=0 -z
> 
> My full data set has 1258 points but the resultant vector map has just
> 24, yet when I display the attribute table it has 1258 rows.

Is that v.in.ascii telling you that you have 24 points, v.info, or
v.surf.rst? If v.surf.rst try "g.region vect=yourpoints" first.



Hamish




More information about the grass-user mailing list