Skip to content

Instantly share code, notes, and snippets.

View wiseman's full-sized avatar

John Wiseman wiseman

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"><Folder ><Folder ><name >FDX1432 track</name>
<Placemark ><name >FDX1432</name>
<Style ><LineStyle ><color >ff1c1ae3</color>
<width >4</width>
</LineStyle>
<IconStyle ><Icon ><href >http://maps.google.com/mapfiles/kml/shapes/airports.png</href>
</Icon>
</IconStyle>
</Style>
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"><Folder ><Folder ><name >64-14831 track</name>
<Placemark ><name >64-14831</name>
<Style ><LineStyle ><color >ff1c1ae3</color>
<width >4</width>
</LineStyle>
<IconStyle ><Icon ><href >http://maps.google.com/mapfiles/kml/shapes/airports.png</href>
</Icon>
</IconStyle>
</Style>
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"><Folder ><Folder ><name >SKW3373 track</name>
<Placemark ><name >SKW3373</name>
<Style ><LineStyle ><color >ff1c1ae3</color>
<width >4</width>
</LineStyle>
<IconStyle ><Icon ><href >http://maps.google.com/mapfiles/kml/shapes/airports.png</href>
</Icon>
</IconStyle>
</Style>
@wiseman
wiseman / foo.kml
Created August 26, 2023 16:06
KML CORS test
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"><Folder ><Folder ><name >N432YX track</name>
<Placemark ><name >N432YX</name>
<Style ><LineStyle ><color >ff1c1ae3</color>
<width >4</width>
</LineStyle>
<IconStyle ><Icon ><href >http://maps.google.com/mapfiles/kml/shapes/airports.png</href>
</Icon>
</IconStyle>
</Style>
@wiseman
wiseman / close.py
Last active August 16, 2023 22:09
Compute closest approach from ADS-B Exchange KML
from dataclasses import dataclass
import datetime
import math
import pprint
import sys
from typing import Dict, List, Tuple
import xml.etree.ElementTree as ET
Coord = Tuple[float, float, float]
@wiseman
wiseman / qgis.py
Last active May 16, 2023 23:53
QGIS: Update layer visibility based on a daily schedule, as well as the temporal start and end dates.
from qgis.core import QgsProject
from qgis.PyQt.QtCore import QTime
import re
tc = iface.mapCanvas().temporalController()
def update_layer_visibility():
tct = tc.dateTimeRangeForFrameNumber(tc.currentFrameNumber()).begin().toPyDateTime().time()
current_time = QTime(tct.hour, tct.minute)
@wiseman
wiseman / recognize.py
Created May 5, 2023 21:58
Part of the atcfreaks app
import argparse
from distutils import extension
import io
import itertools
import logging
import os
import pprint
import sys
import tempfile
import time
@wiseman
wiseman / notam1.geojson
Last active May 2, 2023 18:55
Using GPT-4 to parse geographic boundaries out of NOTAMs and convert them to geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.