[gdal-dev] advice on feathering rasters together?

Matt Wilkie matt.wilkie at gov.yk.ca
Wed Feb 20 16:11:53 EST 2008


Hi Jamie, thanks for responding.

> I recently encountered this exact same problem and would like to find a 
> gdal based solution.  I ended up solving the problem in Grass by 
> creating a grayscale mask of the replacement area and used a convolution 
> filter to feather the edge.  I used this in r.mapcalc to weight the 
> addition of the two rasters.

Please do tell me more. I'm pretty ignorant when it comes to grass.

> It seems this approach could be duplicated with gdal / python.  The main 
> issue would be the creation of the mask to weight the feathering.  The 
> rest should be pretty simple math.
> 
> Let me know if you've heard any other solutions, I'd be interested in 
> pursuing this more.

Not solutions yet, but a couple of promising trails. Summary of where
I'm at here: http://www.uttara.ca/blog/gis/trying-to-patch-a-dem

cheers,

-matt





More information about the gdal-dev mailing list