Skip to content

Instantly share code, notes, and snippets.

@gpprojekt-marcin
gpprojekt-marcin / flask_mvt.py
Created January 5, 2021 11:03 — forked from giohappy/flask_mvt.py
OL + Flask + PostGIS for MVT rendering
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
import shutil
import math
import psycopg2
from flask import Flask, render_template, make_response
app = Flask(__name__)
(function($){
$.widget("ui.mywidget", {
options: {
autoOpen: true
},
_create: function(){
// by default, consider this thing closed.