Skip to content

Instantly share code, notes, and snippets.

View wayneburkett's full-sized avatar

Wayne wayneburkett

  • Providence, RI
View GitHub Profile
@wayneburkett
wayneburkett / everylotpvd
Last active November 8, 2019 13:16
Create an everylotbot for Providence, RI
# download the shapefile and dump it into a database
mkdir tmp && \
curl -L "https://data.providenceri.gov/api/geospatial/78bu-i8at?method=export&format=Shapefile" -o tmp/prcl.zip && \
cd tmp && \
unzip prcl.zip && \
ogr2ogr -f SQLite prcl_raw.db geo_export_*.shp -t_srs EPSG:4326
# create a table with everything you'd need to run an everylot bot
# http://fakeisthenewreal.org/everylot/
# change the table name to whatever the downloads give you (it's randomized)
@wayneburkett
wayneburkett / README.md
Last active June 27, 2020 05:44
Get pixel color from canvas on mouseover

How to create this file

  1. First you'll need to download the latest parcel data (shapefiles and extended parcel records) and generate a SQLite database:
# download the shapefiles and parcel data, merge it all together, and dump it into a database
curl -L "https://www.stlouis-mo.gov/data/upload/data-files/prcl_shape.zip" -o prcl.zip && \
unzip prcl.zip && \
curl -LO "https://www.stlouis-mo.gov/data/upload/data-files/par.zip" && \
unzip par.zip && \