Skip to content

Instantly share code, notes, and snippets.

View hobbes3's full-sized avatar
๐Ÿ˜…

Satoshi Kawasaki hobbes3

๐Ÿ˜…
View GitHub Profile
@hobbes3
hobbes3 / kml_get_centroid.py
Last active September 10, 2019 23:35
KML get centroid
#!/usr/bin/env python
# hobbes3
import xml.etree.ElementTree as ET
import csv
from statistics import mean
KML_FILE = "sf_blocks.kml"
CSV_FILE = "sf_blocks_lat_lon.csv"
CSV_COLUMNS = ["BLKLOT", "lat", "lon"]