"""Scrub feature assembly (`natural=scrub`). Flat ground cover only.""" from osmassets.geom import clip_polygon def assemble(ring, way_id, scene_xmin, scene_xmax, scene_ymin, scene_ymax, green_c, scrub_mat, add_scrub_patch_fn): ring = clip_polygon(ring, scene_xmin, scene_xmax, scene_ymin, scene_ymax) focus = list(ring) if len(ring) < 3: return 0, focus add_scrub_patch_fn("Scrub_" + str(way_id), ring, scrub_mat, green_c) return 1, focus