Skip to content

Instantly share code, notes, and snippets.

@bertspaan
bertspaan / data.geojson
Created December 1, 2015 23:14
Greenbook GeoJSON
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.
@bertspaan
bertspaan / carnaval.pits.ndjson
Created May 20, 2015 10:14
Carnaval - Histograph
{"id":0,"name":"'t Aogje","type":"hg:Place"}
{"id":1,"name":"'t Bliekersriek","type":"hg:Place"}
{"id":2,"name":"'t Bokkerijersrijk","type":"hg:Place"}
{"id":3,"name":"'t Ganzedrp","type":"hg:Place"}
{"id":4,"name":"'t Heidurp","type":"hg:Place"}
{"id":5,"name":"'t Hout","type":"hg:Place"}
{"id":6,"name":"'t Hupke","type":"hg:Place"}
{"id":7,"name":"'t Kleigat","type":"hg:Place"}
{"id":8,"name":"'t Nlersriek","type":"hg:Place"}
{"id":9,"name":"'t Sanegat","type":"hg:Place"}
@bertspaan
bertspaan / inzending.md
Last active August 29, 2015 14:16
All 9,866,539 buildings in the Netherlands

All 9,866,539 buildings in the Netherlands

Title

All 9,866,539 buildings in the Netherlands

Format

Interactive web map.

(Some high-res images are available in the project's GitHub repository.)

@bertspaan
bertspaan / errors.json
Created March 5, 2015 13:42
Histograph: Elasticsearch data indexing errors
[
{
"hgid": "atlas-verstedelijking/Alkmaar_1980",
"error": {
"message": "MapperParsingException[failed to parse [geometry]]; nested: ElasticsearchParseException[Invalid shape: Hole is not within polygon]; "
}
},
{
"hgid": "atlas-verstedelijking/Alkmaar_2010",
"error": {
@bertspaan
bertspaan / delete-index.js
Last active August 29, 2015 14:16
histograph-elasticsearch.js
var elasticsearch = require('elasticsearch'),
config = require(process.env.HISTOGRAPH_CONFIG),
esClient = new elasticsearch.Client({
host: config.elasticsearch.host + ':' + config.elasticsearch.port,
//log: 'trace'
});
esClient.indices.delete({
index: config.elasticsearch.index
}, function(body) {
@bertspaan
bertspaan / verdwenen-dorpen.json
Created February 4, 2015 17:32
Verdwenen Dorpen. Auteur: Bert Stulp, Eddie Poppe. Licentie: CC-BY
{
"features": [
{
"geometry": {
"coordinates": [
5.37197347709,
52.130290402
],
"type": "Point"
},
@bertspaan
bertspaan / pits.ndjson
Created February 4, 2015 09:10
DRAFT of Histograph input file format. All files are NDJSON files.
// pits.ndjson contains NDJSON, each line defines a PIT,
// with the following properties:
{
"id": 9872, // integer or string, must be unique in dataset. Required.
"name": "Laren", // Label. Required.
"type": "place", // one of the following: ["place", "municipality", "country", ...]. Required.
"startDate": 1982-12-2, // XSD date. Optional.
"endDate": 2010-10-3, // XSD date. Optional.
"geometry": {}, // GeoJSON object. Optional.
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
Created November 26, 2014 09:18
CitySDK LD API v0.9 - Matching API

CitySDK LD API v0.9 - Matching API

This gist contains the code of the matching API of the old version of CitySDK LD API.

api.rb was part of the Sinatra REST API, this code was triggered by a POST request, and called the code in the other files.