Skip to content

Instantly share code, notes, and snippets.

@locontem
locontem / load_osm_history.py
Last active June 19, 2018 15:51 — forked from HeikkiVesanto/load_osm_history.py
pipe osmium-tools extracts into PostgreSQL
import os
import psycopg2
import subprocess
def runogr2ogr(infile):
# import the data
try:
command = ["ogr2ogr", "-f", "PostgreSQL",
OGR_CONN_STRING,