Skip to content

Instantly share code, notes, and snippets.

View beyoung's full-sized avatar
🥋
Focusing

beyoung beyoung

🥋
Focusing
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beyoung
beyoung / server.js
Created February 28, 2018 07:25 — forked from zimmicz/server.js
PostGIS MVT Express routing
const express = require("express")
const app = express()
const { Pool } = require("pg")
const SphericalMercator = require("sphericalmercator")
const pool = new Pool({
host: "localhost",
port: 15432,
user: "postgres",
database: "postgres"
})
{
"405156": "http://polygons.openstreetmap.fr/get_poly.py?id=405156&params=0",
"407717": "http://polygons.openstreetmap.fr/get_poly.py?id=407717&params=0",
"406567": "http://polygons.openstreetmap.fr/get_poly.py?id=406567&params=0.002000-0.005000-0.005000",
"407787":"http://polygons.openstreetmap.fr/get_poly.py?id=407787&params=0",
"406091":"http://polygons.openstreetmap.fr/get_poly.py?id=406091&params=0",
"412436":"http://polygons.openstreetmap.fr/get_poly.py?id=412436&params=0",
"412377":"http://polygons.openstreetmap.fr/get_poly.py?id=412377&params=0",
"412436": "http://polygons.openstreetmap.fr/get_poly.py?id=412436&params=0",
"412436":"http://polygons.openstreetmap.fr/get_poly.py?id=412436&params=0",
import os
import requests
from django.core.management.base import BaseCommand
# BASE_URL = 'http://opendemdata.info/data/srtm_contour/N06E031.zip'
BASE_URL = 'http://opendemdata.info/data/srtm_contour/%s%s%s%s.zip'
BASE_STORE_PATH = ''
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"tilejson": "2.1.0",
"name": "world",
"description": "STK World Terrain Premium Tileset, v1.3. 10m - 30m resolution CONUS, 30m resolution SRTM between 60N and 60S, 30m Europe. Minimum global coverage of 1000m.",
"version": "1.31376.0",
"format": "quantized-mesh-1.0",
"attribution": "© Analytical Graphics Inc., © CGIAR-CSI, Produced using Copernicus data and information funded by the European Union - EU-DEM layers",
"scheme": "tms",
"extensions": [
"watermask",
# !/user/bin/env/python
# -*- coding: utf-8 -*-
# version: v0.0.1
# author: youth
# contact: [email protected]
# project: garbage
# filename: terrain.py.py
# datetime: 2017-08-31 16:05
# description:
import os
@beyoung
beyoung / 11.geojson
Last active September 2, 2017 04:10
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
node /usr/src/app/bin/tessera.js -c /data/config.json --PORT 81 --cache-size 500 --source-cache-size 10
weba:
build: ./web
expose:
- 80
webb:
build: ./web
expose:
- 80