File: test_external_example.py

package info (click to toggle)
pykml 0.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 920 kB
  • sloc: python: 3,919; makefile: 108; sh: 8
file content (12 lines) | stat: -rw-r--r-- 274 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
from pykml.factory import KML_ElementMaker as KML
from lxml import etree

pm1 = KML.Placemark(
                KML.name("Hello World!"),
                KML.Point(
                  KML.coordinates("-64.5253,18.4607")
                )
              )

etree.tostring(pm1)