Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aubreymoore
aubreymoore / triangular_grid.py
Last active March 14, 2021 01:06
Create a KML file with equally spaced points at vertices of a triangular grid.
#!/usr/bin/python3
import pyproj
import simplekml
'''
Generates a KML file with equally spaced points at vertices of a triangular grid. The epsg argument is the code for the UTM
projection which converts lat/lon to meters. The epsg default value, EPSG:32655 is for Guam (zone 55n).
Example: This command line places points equally spaced at 10 m on the lawn in front of the Canadian Parliament Building:
$ python -c 'from triangular_grid import *; \