docs: def to_raster(self, vector):
          """Return the vector in pixel coordinates, as shapely.Geometry."""
          return transform(vector.get_shape(vector.crs), vector.crs, self.crs, dst_affine=~self.affine)