Let's say you want to host domains first.com and second.com.
Create folders for their files:
| import sys | |
| import jiphy # pip install | |
| from os import path | |
| from types import ModuleType | |
| class JsFinder(object): | |
| def find_module(self, name, m_path): | |
| name += '.js' | |
| if m_path is not None: |
| ''' | |
| A simple tool for exporting from a PostGIS table to GeoJSON and TopoJSON. Assumes Python 2.7+, | |
| psycopg2, and TopoJSON are already installed and in your PATH. | |
| Adapted from Bryan McBride's PHP implementation | |
| (https://gist.github.com/bmcbride/1913855/) | |
| by John Czaplewski | jczaplew@gmail.com | @JJCzaplewski | |
| TODO: | |
| - Add argument for SRS |