This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |