(
dwg: svgwrite.Drawing,
geoms: shapely.geometry.base.BaseMultipartGeometry,
group: svgwrite.container.Group = None,
)
| 101 | |
| 102 | |
| 103 | def 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 | |
| 119 | inserters = { |
nothing calls this directly
no test coverage detected