MCPcopy Create free account
hub / github.com/Notgnoshi/generative / insert_collection

Function insert_collection

tools/wkt2svg.py:103–116  ·  view source on GitHub ↗
(
    dwg: svgwrite.Drawing,
    geoms: shapely.geometry.base.BaseMultipartGeometry,
    group: svgwrite.container.Group = None,
)

Source from the content-addressed store, hash-verified

101
102
103def insert_collection(
104 dwg: svgwrite.Drawing,
105 geoms: shapely.geometry.base.BaseMultipartGeometry,
106 group: svgwrite.container.Group = None,
107):
108 logger.debug("Entering group for %s", geoms.geom_type)
109 g = svgwrite.container.Group()
110 for geom in geoms.geoms:
111 insert_geometry(dwg, geom, g)
112 logger.debug("Ending group for %s", geoms.geom_type)
113 if group is not None:
114 group.add(g)
115 else:
116 dwg.add(g)
117
118
119inserters = {

Callers

nothing calls this directly

Calls 1

insert_geometryFunction · 0.85

Tested by

no test coverage detected