This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Read graphs in Open Street Maps osm format | |
Based on osm.py from brianw's osmgeocode | |
http://github.com/brianw/osmgeocode, which is based on osm.py from | |
comes from Graphserver: | |
http://github.com/bmander/graphserver/tree/master and is copyright (c) | |
2007, Brandon Martin-Anderson under the BSD License | |
""" |
Whole Earth Guide
I'm not sure about this; GIS really got burned from being both a 'science' and a 'product' from the beginning, and there are blurry lines between what I think is essential and what I don't know because I never do it and am not a GIS person. Anyway.
- A No-Bullshit Intro to Maps and GIS
- What Maps Are
- Data
- Information
- Transformation
This is a non-technical reading list for technical people.
- How to Program Independent Games
- Kill Math (and Don't Kill Math)
- Move Fast and Don't Break Things
- Launch & The Web Is a Customer Service Medium by Paul Ford
- _why at Art & Code
- Repetitive Process
This is a list of software you should read like a novel.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''Provides utility functions for encoding and decoding linestrings using the | |
Google encoded polyline algorithm. | |
''' | |
def encode_coords(coords): | |
'''Encodes a polyline using Google's polyline algorithm | |
See http://code.google.com/apis/maps/documentation/polylinealgorithm.html | |
for more information. | |
___an infinite space
45 ways to visualize two numbers http://blog.visual.ly/45-ways-to-communicate-two-quantities/
___navigating the infinite space
knights movement:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# loop through all of the shapefiles in the directory and act on them | |
# http://trac.osgeo.org/gdal/wiki/FAQVector#HowcanImergehundredsofShapefiles | |
# http://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash | |
# !IMPORTANT: OGR 1.9 for direct to PostGIS support, linestring-multilinestring, and character encoding support. | |
if [ $# -ne 1 ]; then | |
echo "USAGE: ./import.sh <in_dir_path>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# With the GeoJSON OGR driver one can use the CartoDB SQL API to create any OGR supported format output | |
# OGR Formats: http://gdal.org/ogr/ogr_formats.html | |
# CartoDB SQL API: http://developers.cartodb.com/documentation/sql-api.html | |
# This sample creates a DXF making a "select the_geom from meteo" from my account at CartoDB | |
ogr2ogr -skipfailures -f DXF out.dxf "http://xurxosanz.cartodb.com/api/v2/sql?q=select%20the_geom%20from%20meteo&format=GeoJSON" OGRGeoJSON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var oauth = require('oauth'); | |
var app = express.createServer(); | |
var key = "[api-key]"; | |
var secret = "[api-secret]"; | |
var request = new oauth.OAuth(null, null, key, secret, '1.0', null, 'HMAC-SHA1'); | |
app.get('/api-request', function(req, res){ | |
request.get( | |
"http://127.0.0.1:8000/api/1.0/data.json", |