Skip to content

Instantly share code, notes, and snippets.

@olafveerman
olafveerman / portugal-P0_005.topojson
Last active April 14, 2017 14:51
Comparing TopoJSON simplification of Portuguese administrative boundaries
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@olafveerman
olafveerman / pt-P0_05.topojson
Last active February 17, 2017 14:43
toposimplify -P 0.05
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@olafveerman
olafveerman / generate-bbox.js
Last active August 2, 2016 18:25
countries.json = a geojson with data from Natural Earth
'use strict';
const turf = require('turf');
const countries = require('./countries.json')
let bboxs = countries.features.map(function(feature) {
if (feature.properties.ISO_A2 !== '-99') {
return {
iso: feature.properties.ISO_A2,
name: feature.properties.ADMIN,
#!/usr/bin/python
# Diff two OSM changesets and output a list with
# node id's that are only in the original changeset
import re
def getIDs(f):
s = set()
for line in f:
@olafveerman
olafveerman / remove-properties.py
Created October 8, 2015 16:40
Reads a geojson and removes all properties except for 'name'
import json
with open('./parksway.geojson','rb') as f:
reader = json.load(f)
for ft in reader["features"]:
for p in ft["properties"].keys():
if not p == 'name':
del ft["properties"][p]
@olafveerman
olafveerman / ogp-summit-proposal.md
Last active July 28, 2016 14:24
OGP summit - format for session proposals

What type of session would you like to propose?
More information about the formats is up on this Google Doc
Please send just one proposal per application.

  • Keynote
  • Workshop
  • Speed Geeking / Networking
  • Hackathon
  • Sprint
  • Round table
  • PechaKucha
[
{
"username": "James LC",
"creation date": "2015-06-06 10:55",
"commit text": "Trace Winster building"
},
{
"username": "yourfriendjames",
"creation date": "2015-06-06 10:56",
"commit text": "Xerox building"