It appears polygonize exists in this lib but rasterize doesn't. Is this something that could be achieved? Are there technical challenges to doing so?