Skip to content

Instantly share code, notes, and snippets.

@bertspaan
bertspaan / nyc-zip.geojson
Created December 22, 2015 17:10
NYC ZIP codes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertspaan
bertspaan / data.geojson
Created December 1, 2015 23:14
Greenbook GeoJSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.