Skip to content

Instantly share code, notes, and snippets.

@meshackjr
meshackjr / wkt
Created October 8, 2020 09:18
Tanzania WKT (OGC WKT)
POLYGON((36.2671 -11.7078,36.24263284912109 -11.703873211730983,36.21541911621094 -11.710704223682043,36.19120405273439 -11.684023617070014,36.1775971862793 -11.655834343351428,36.180469812011744 -11.622261722339562,36.18209519042972 -11.58739347818889,36.14002734375001 -11.567428118239437,36.064824340820294 -11.550082613166541,36.04180639648437 -11.526008128598056,35.97379785156251 -11.483236233269434,35.85975341796876 -11.432672270021898,35.70570961914063 -11.512164655863138,35.64791379394531 -11.564011434166936,35.52419999999999 -11.580872120504797,35.38425373535152 -11.587387563129473,35.26628012695309 -11.572377684584843,34.95617519531248 -11.575991470090568,34.921747216796874 -11.40717709634858,34.77136120605468 -11.312751126406765,34.61273544921873 -11.10511958498078,34.60706525878903 -11.008483405196927,34.661819873046866 -10.917209305256856,34.55434912109374 -10.488912954119709,34.5526870849609 -10.218847460269386,34.4686275878906 -9.99183394467391,34.2911843017578 -9.745713773126038,34.1192341796875

The PATH is an important concept when working on the command line. It's a list of directories that tell your operating system where to look for programs, so that you can just write script instead of /home/me/bin/script or C:\Users\Me\bin\script. But different operating systems have different ways to add a new directory to it:

Windows

  1. The first step depends which version of Windows you're using:
  • If you're using Windows 8 or 10, press the Windows key, then search for and
@graydon
graydon / country-bounding-boxes.py
Created April 23, 2014 00:03
country bounding boxes
# extracted from http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip
# under public domain terms
country_bounding_boxes = {
'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)),
'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)),
'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)),
'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)),
'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)),
'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)),