Skip to content

Instantly share code, notes, and snippets.

@bertspaan
bertspaan / belemmeringen_09.geojson
Created August 14, 2013 12:50
CORA-data waarin GeometryCollections voorkomen
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertspaan
bertspaan / belemmeringen_09.geojson
Created August 14, 2013 12:50
CORA-data waarin GeometryCollections voorkomen
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertspaan
bertspaan / belemmeringen_09.geojson
Created August 14, 2013 12:52
CORA-data waarin GeometryCollections voorkomen
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertspaan
bertspaan / measurements.topojson
Created August 27, 2013 08:53
Rome measurements
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertspaan
bertspaan / measurements.topojson
Created August 27, 2013 10:01
Rome measurements
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertspaan
bertspaan / map.geojson
Created September 1, 2013 15:14
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertspaan
bertspaan / README.md
Last active March 17, 2018 17:40
TileMill project and SQL script to generate map tiles as seen on http://citysdk.waag.org/buildings/

Buildings in the Netherlands by year of construction

Map can be seen on http://citysdk.waag.org/buildings/. The map shows all 9,866,539 buildings in the Netherlands, shaded according to year of construction. Data from BAG, via CitySDK. Map made with TileMill by Bert Spaan, Waag Society, inspired by BKLYNR.

This README file explains how to get the data, create the map and export high-res PNG and PDF files.

Download and import BAG data

First, install PostgreSQL and PostGIS. To download and import the latest BAG data into a local database, you can use the data, tools and tutorials provided

@bertspaan
bertspaan / talking-data.json
Created September 27, 2013 13:40
Talking Data example
[
{
"id": "engelandpolen",
"name": "Engeland - Polen",
"type": "wood",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" id=\"drawing\" style=\"\"><g class=\"leaflet-zoom-hide\" ><g class=\"edges\"><line stroke=\"#000000\" stroke-width=\"20\" x1=\"141.24971070648908\" y1=\"254.13772587128165\" x2=\"1024.16725749531\" y2=\"422.95733860084147\" class=\"\"/><line stroke=\"#000000\" stroke-width=\"20\" x1=\"1025.3497765037134\" y1=\"441.63234992014986\" x2=\"670.6502234962867\" y2=\"557.3676500798501\" class=\"\"/><line stroke=\"#000000\" stroke-width=\"20\" x1=\"645.6658341124474\" y1=\"533.0487832933884\" x2=\"740.3341658875526\" y2=\"213.95121670661166\" class=\"\"/><line stroke=\"#000000\" stroke-width=\"20\" x1=\"722.8558664907038\" y1=\"202.78220629828812\" x2=\"486.1441335092962\" y2=\"411.2177937017119\" class=\"\"/><line stroke=\"#000000\" stroke-width=\"20\" x1=\"468.6131550713538\" y1=\"400.0331967026343\" x2=\"519.3868449286462\" y2=\"227.96680329736571\" class=\"\
@bertspaan
bertspaan / waterschapsgrenzen.topojson
Created October 12, 2013 17:33
Waterschapsgrensen in TopoJSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertspaan
bertspaan / put.rb
Created October 15, 2013 19:45
CitySDK: Ruby script to add data to node `pc.nlp4.3514`
require 'citysdk'
$email = ARGV[1]
$password = ARGV[2]
@api = CitySDK::API.new("api.citysdk.waag.org")
@api.authenticate(email, passw)
data = {
data: {