pip install meza
# readers
>>> from meza import io
>>>
>>> records = io.read('kibo_peak.geojson')
#!/usr/bin/env python2 | |
# | |
import csv, sys | |
from io import open | |
from collections import defaultdict | |
from pyvotecore.schulze_stv import SchulzeSTV | |
notation = SchulzeSTV.BALLOT_NOTATION_RANKING |
pip install meza
# readers
>>> from meza import io
>>>
>>> records = io.read('kibo_peak.geojson')
### | |
### Barry Rowlingson, Lancaster University | |
### | |
## needed for shapefiles: | |
require(rgdal) | |
## needed for colour mapping - not on CRAN: | |
## http://r-forge.r-project.org/projects/colourscheme/ | |
## try: |
cd path/to/project | |
# create package.xml | |
pear package-validate | |
pear package | |
cp *.tgz path/to/pear/repo | |
cd path/to/pear/repo | |
pirum add . [filename].tgz | |
git add -A | |
git commit -m 'Add new package' | |
git push origin gh-pages |
#load data | |
stateAbbr rownames(stateAbbr)unemp_data | |
#get county names in correct format | |
countyNames counties statesstates | |
#concatenate states and counties | |
unemp_data$counties | |
#parse out county titles & specifics |
#!/usr/bin/env bash | |
# Bulk convert shapefiles to geojson using ogr2ogr | |
# For more information, see http://ben.balter.com/2013/06/26/how-to-convert-shapefiles-to-geojson-for-use-on-github/ | |
# | |
# usage: geojsonize *.zip | |
# | |
# Note: Assumes you're in a folder with one or more zip files containing shape files | |
# and Outputs as geojson with the crs:84 SRS (for use on GitHub or elsewhere) |