[gdal-dev] Converting contour lines (Shape files) into DEM

Christopher Barker Chris.Barker at noaa.gov
Mon Mar 29 13:36:49 EDT 2010


Frank Warmerdam wrote:
> gdal_fillnodata attempts to do interpolation and was designed with the
> idea of filling in between contours and holes in elevation products.   It
> isn't perfect of course, but isn't the stepwise result you are expecting.

my bad -- I was making assumptions...

> The algorithm effectively involves radial searches out from each pixel
> to be interpolated, in 4 (or 8?) directions and then weighted distance
> interpolation from the hits.

Well worth giving a try, but it sounds like it's using methods for 
interpolation arbitrarily spaced data. contours are a special case, as 
there is lots of data at particular elevations, and there is a known 
relationship between these points. What this means is that a method 
designed specifically for interpolating contours may work better.

gdal_fillnodata is sure worth a try, though.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the gdal-dev mailing list