Implementation case study I: generalization of raster data