I hereby claim:
- I am tewhalen on github.
- I am tewhalen (https://keybase.io/tewhalen) on keybase.
- I have a public key ASB_yeVa0_SnoErhJljBZEApNglY6v0oQQVPRzkZMR6kmAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/python | |
""" | |
Uses matplotlib to plot WKT polygons in CSV format. | |
1. install GDAL | |
2. download a shapefile | |
3. use ogr2ogr to convert it to CSV with WKT | |
ogr2ogr -f CSV output.csv input.shp -lco GEOMETRY=AS_WKT | |
4. run getPolygons against the output csv |
#!/usr/bin/python | |
import matplotlib.pyplot as plt | |
import matplotlib.patches as mpatches | |
from matplotlib.collections import PatchCollection | |
from string import ascii_uppercase | |
class CArea: | |
def __init__(self,n,name="",gridloc = None): |