[GRASS-user] Shapefile to Surface

leonidas leonidas_liakos at yahoo.gr
Mon Jan 31 10:32:51 EST 2011


I need to convert a shapefile (that stores data as grid points (lattices in
arcinfo terminology), 150m x 150m for wind velocity). You can see the
shapefile contents here: http://flic.kr/p/9eAZr3

Then I tried to generate a surface in grass as follow:
1. I converted the shapefile to csv with :
ogr2ogr -f CSV output.csv input.shp -lco GEOMETRY=AS_XY
The csv contents are like that:

105000|4422900|8.36855000
105150|4422900|7.85873000
105000|4422750|9.67642000
..........................................
........................
............

2. Then, I used r.in.xyz to generate the surface. 

Unfortunately, the generated raster was again another grid of points (image:
http://flic.kr/p/9exTT4)

So, how can I generate a raster surface from a shapefile like that? Do I
need to use v.surf.idw or is any faster way
Do I need a data conversion or interpolation?
Thank you, Leonidas!
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Shapefile-to-Surface-tp5977485p5977485.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list