79711604

Date: 2025-07-23 09:15:07
Score: 1
Natty:
Report link
# your job: get geometry expressed in pixel coordinates first
xmin, ymin, xmax, ymax = shapely.total_bounds(geometry)
outshape = (int(round(xmax-xmin)),int(round(ymax-ymin)))
array = rasterio.features.rasterize(
        [geometry], out_shape=out_shape, dtype=int)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ML_fabster