Skip to content

Latest commit

 

History

History
309 lines (220 loc) · 7.26 KB

slides.md

File metadata and controls

309 lines (220 loc) · 7.26 KB

Small Town GIS leveraging GitHub

Aaron Racicot - aaronr@z-pulley.com
reprojected.com / @reprojected
github.com/aaronr

aaronr.github.io/foss4g-2014/smalltown

--SLIDE--

Who I am?

  • SW Developer
  • Environmental Scientist
  • Open Source Advocate

--SUBSLIDE--

Computer Science

Bridging the Gap

Environmental Science

--SUBSLIDE--

--SLIDE--


Our "Small Town" - 1000 residents

--SUBSLIDE--


Washington State - North of Seattle

--SUBSLIDE--


1 Square Mile

--SLIDE--

How this started

Student Internship

--SUBSLIDE--

Where we want to go

Partnerships with local Government

--SLIDE--

What our small town does not have...

Money

Resources (People)

Resources (Technology)

--SUBSLIDE--

What our small town needs...

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--

Workflow

--SUBSLIDE--


Add Data

--SUBSLIDE--


Preview

--SUBSLIDE--


Edit Data (geojson.io)

--SUBSLIDE--


Diff Data

--SUBSLIDE--


Build Apps!

--SLIDE--

Data

GeoJSON + Tile Sets

--SUBSLIDE--

GeoJSON

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--

Tile Sets

--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

geojson.io
http://geojson.io/#id=github:langleywa/gisdata/blob/gh-pages/geojson/historicinventory_4326.geojson&map=19/48.04109/-122.40962

Diff URL
https://github.com/langleywa/gisdata/commit/9e74d8c5e4d9f906c20e1d4778077e8578d58d1c?short_path=e5eee6f#diff-e5eee6f691fac526315233e6a5fcf251

--SLIDE--

Thank You !!!