Help convert vector contour line to surface elevation
Angus Carr
apcarr at FLASH.LakeheadU.CA
Sat Jan 20 07:00:00 EST 1996
There are two things that I have done.
Method 1: If your contours won'd meld together into 1 raster cell then
the command v.to.rast will work wonders for you. I created a
fine-resolution surface using contours this way.
When I tried a coarser resolution, there were some obvious errors, as in
a group of pixels that didn't change over a contour line. I thought that
was odd. It was caused by two vector lines sharing a pixel. It had only
one value (natutally). I tried
Method 2: turn the vector lines into sites using v.to.sites (use all
points: -a) and then generate a surface using s.surf.idw. This is a
resolution-independant approach, and produces results similar to
r.surf.contour, at least on my maps.
Good Luck!
Angus.
On Fri, 19 Jan 1996, mohdnaka wrote:
> Dear Grassusers
>
> I have a set of vector contour lines that I would like to convert to raster
> surface elevation. If r.contour can create a vector contour file from
> raster elevation data, is there any command that I can use that will create
> raster elevation data from vector contour lines.
>
> Any suggestions or help are welcome.
>
> Cheers,
>
> Kamarul
>
More information about the grass-user
mailing list