impl make the edge table for the polygon raster