79207631

Date: 2024-11-20 14:33:21
Score: 0.5
Natty:
Report link
# create a line geometry using shapely
line = shapely.geometry.LineString([p1, p2])
# combine shapes into a geometrycollection
gc = shapely.geometry.collection.GeometryCollection([line, p1, p2])

from fastkml import KML
from fastkml import Placemark
pm = Placemark(geometry=gc)
k = KML(features=[pm])

more in the documentation

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: cleder