Skip to content

Instantly share code, notes, and snippets.

View campbellfleury's full-sized avatar
🧑‍💻

Campbell Fleury campbellfleury

🧑‍💻
View GitHub Profile
@campbellfleury
campbellfleury / exotic.sh
Created August 9, 2019 10:20
ogr2ogr - WFS to GeoJSON
ogr2ogr -f GeoJSON exotic.json -t_srs "EPSG:4326" "WFS:https://data.linz.govt.nz/services;key=fb579c4a688c4b8aa5a8d33fa8b9afe9/wfs/layer-50267?service=WFS&request=GetCapabilities"
@campbellfleury
campbellfleury / docker_compose.yml
Created July 21, 2019 09:43
docker_compose for elasticsearch.
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
container_name: elasticsearch
environment:
- node.name=elasticsearch
- discovery.seed_hosts=elasticsearch2
- cluster.initial_master_nodes=elasticsearch,elasticsearch2
- cluster.name=docker-cluster
@campbellfleury
campbellfleury / docker_elastic
Created July 20, 2019 01:02
elasticsearch docker
docker run -d --name elastic_local --restart always -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.2.0
docker run -d --restart always --name kibana_local --link elastic_local:elasticsearch -p 5601:5601 docker.elastic.co/kibana/kibana:7.2.0
@campbellfleury
campbellfleury / MVTConversion.py
Last active December 9, 2018 01:05
MVTConversion
import os
from osgeo import ogr
from osgeo import osr
class MVTConversion(object):
def __init__(self, sourcedb, minzoom=None, maxzoom=None):
# Open a connection to the source database