<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)