Aaron Racicot - aaronr@z-pulley.com
reprojected.com / @reprojected
github.com/aaronr
aaronr.github.io/foss4g-2014/smalltown
--SLIDE--
- SW Developer
- Environmental Scientist
- Open Source Advocate
--SUBSLIDE--
--SLIDE--
Our "Small Town" - 1000 residents
--SUBSLIDE--
Washington State - North of Seattle
--SUBSLIDE--
1 Square Mile
--SLIDE--
Student Internship--SUBSLIDE--
Partnerships with local Government--SLIDE--
Money
Resources (People)
Resources (Technology)
--SUBSLIDE--
Inexpensive solutions
Data normalization
Data access
Simple Applications
--SLIDE--
Version Control (Data and Applications)
Hosting (GitHub Pages)
Open at heart!
Free!!!
--SUBSLIDE--
Work in the open... for FREE!
--SUBSLIDE--
Leveraging GitHub Pages for hosting!
--SLIDE--
Geo at Github
--SUBSLIDE--
Preview data
--SUBSLIDE--
Diff GeoJSON
--SLIDE--
--SUBSLIDE--
Add Data
--SUBSLIDE--
Preview
--SUBSLIDE--
Edit Data (geojson.io)
--SUBSLIDE--
Diff Data
--SUBSLIDE--
Build Apps!
--SLIDE--
GeoJSON + Tile Sets--SUBSLIDE--
Convert and reproject to WGS84 lat/lon (EPSG:4326)
for f in *.shp; do ogr2ogr -f "GeoJSON" -s_srs EPSG:2285 ...
-t_srs EPSG:4326 ${f/.shp}_4326.geojson $f; done
--SUBSLIDE--
Create repo on GitHub
--SUBSLIDE--
git clone git@github.com:langleywa/gisdata.git
cd gisdata
mv ~/mylayer.geojson .
git add mylayer.geojson
git commit -m "Yes... DATA"
git push
--SUBSLIDE--
git checkout -b gh-pages
git push origin gh-pages
--SUBSLIDE--
http://langleywa.github.io/gisdata/geojson/citylimitsline_4326.geojson
--SLIDE--
--SUBSLIDE--
Geo reference your data
--SUBSLIDE--
nearblack -of GTiff -setalpha -o outfile infile
--SUBSLIDE--
gdal2tiles.py --profile=mercator -z 1-22 yourmap.tif outputfolder
--SUBSLIDE--
git add outputfolder
git commit -m "Yes... TILE DATA"
git push
--SUBSLIDE--
git checkout gh-pages
git merge master
git push origin gh-pages
--SUBSLIDE--
http://langleywa.github.io/gisdata/tiles/langley-2nd-street-2014/21/335500/1368498.png
--SLIDE--
GeoJson
var featureLayer = L.mapbox.featureLayer()
.loadURL('/gisdata/geojson/citylimitsline_4326.geojson')
.addTo(map);
--SUBSLIDE--
Tiles
var tileLayer = L.tileLayer('/gisdata/tiles/langley-2nd-street-2014/{z}/{x}/{y}.png',
{tms: true, minZoom:1, maxZoom:22, bounds:bounds}).addTo(map);
--SLIDE--
Test App
http://langleywa.github.io/apps/test/
Example Data URLs
http://langleywa.github.io/gisdata/geojson/historicinventory_4326.geojson
http://langleywa.github.io/gisdata/tiles/langley-2nd-street-2014/16/10484/42765.png
--SLIDE--