This function causes the function f to be called on each pixel that interacts with the polygon.
A polygon to rasterize
A raster extent to rasterize the polygon into
The options parameter controls whether to treat pixels as points or areas and whether to report partially-intersected areas.
Given a polygon and a raster extent, return an R-Tree (being used as an Interval Tree) containing the Segments -- in raster coordinates -- that comprise the boundary of the polygon.
A raster extent