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

Function insert_point

tools/wkt2svg.py:70–78  ·  view source on GitHub ↗
(
    dwg: svgwrite.Drawing, geom: shapely.geometry.Point, group: svgwrite.container.Group = None
)

Source from the content-addressed store, hash-verified

68
69
70def insert_point(
71 dwg: svgwrite.Drawing, geom: shapely.geometry.Point, group: svgwrite.container.Group = None
72):
73 logger.debug("Adding %s", geom)
74 p = svgwrite.shapes.Circle(center=geom.coords[0][:2], r=0.5)
75 if group is not None:
76 group.add(p)
77 else:
78 dwg.add(p)
79
80
81def insert_linestring(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected