Skip to content

Instantly share code, notes, and snippets.

@nidico
nidico / lamson-logger.py
Last active December 14, 2015 10:59 — forked from jordansissel/run-lamson.py
This runs `lamson log` without daemonizing itself
from lamson import server, routing, utils
import sys, os
import logging
settings = utils.make_fake_settings('127.0.0.1', 8825)
settings.receiver.start()
@nidico
nidico / postgis.py
Created May 27, 2012 08:04 — forked from tokumine/postgis.py
Hacked imposm postgis.py to enable imports to work with PostGIS 2.0
# On OSX, this Imposm file is found at: /Library/Python/2.7/site-packages/imposm/db/postgis.py. YMMV
# Hack basically comments out all the elements relating to modifying the geometry_columns table.
# In PostGIS 2.0 this is a view and handled transparently.
# Copyright 2011 Omniscale (http://omniscale.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#