Skip to content

Instantly share code, notes, and snippets.

View emacgillavry's full-sized avatar

Edward Mac Gillavry emacgillavry

View GitHub Profile
@emacgillavry
emacgillavry / load_dmp_2_cartodb.sh
Created November 12, 2012 13:31
Use Postgres dump files to populate CartoDB instance
#!/bin/bash
#------------------------------------------------------------
# We assume the dump files have been generated using pg_dump:
#
# pg_dump -a --column-inserts -x -O -t table_name database_name -f /tmp/dmp_file_name
#
#------------------------------------------------------------
# Provide details of your CartoDB account:
@emacgillavry
emacgillavry / index.html
Last active June 7, 2017 19:44
NL WMTS-service in OpenLayers
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8">
<title>BRT-Achtergrondkaart in OpenLayers</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta name="author" content="Edward Mac Gillavry">
<link rel="stylesheet" href="main.css">
</head>
@emacgillavry
emacgillavry / README.md
Last active December 14, 2015 15:44
Infinite scrolling bug

This example shows how to use the popular Leaflet.js v.1.0.0 beta 2 interactive mapping library with OGC-compliant geographic web service (in this case TMS) that comes in the Dutch reference system: Rijksdriehoekstelsel (RD), Amersfoort New (EPSG:28992).

Still, the infinite scrolling bug seems to pop up again...

Cheers,

Edward @emacgillavry

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.1.0"
xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:se="http://www.opengis.net/se" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<!--<se:Name>BU.Building_polygon</se:Name>-->
<se:Name>gebouw</se:Name>
<UserStyle>
@emacgillavry
emacgillavry / README.md
Last active December 15, 2015 13:25
Scale bar for custom projections

This example shows how to use the popular Leaflet.js v.1.0.0 beta 2 interactive mapping library with OGC-compliant geographic web service (in this case TMS and WMS) that come in the Dutch reference system: Rijksdriehoekstelsel (RD), Amersfoort New (EPSG:28992).

The Statistics Netherlands have calculated spatial statistics to a 100 meter grid. This is used as a guide to determine the accuracy of the scale bar.

Cheers,

Edward @emacgillavry

@emacgillavry
emacgillavry / index.html
Created March 25, 2016 09:20
Leaflet.js met TMS en WMS in RD én GetFeatureInfo
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Leaflet.js met TMS en WMS in RD én GetFeatureInfo</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="Edward Mac Gillavry">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v1.0.0-beta.2/leaflet.css" />
<link rel="stylesheet" href="main.css" />
@emacgillavry
emacgillavry / README.md
Created January 10, 2017 11:10 — forked from webmappergists/buildings.js
TOP10NL 3D in OSMBuildings
@emacgillavry
emacgillavry / gemeenten2017.geojson
Last active February 8, 2018 12:12
Basic GeoJSON map in D3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emacgillavry
emacgillavry / gemeenten2017.topojson
Last active February 8, 2018 12:12
From GeoJSON to TopoJSON in D3.js
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emacgillavry
emacgillavry / aardbevingen_NL.geojson
Last active February 8, 2018 12:11
Add multiple sources in D3.js
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.