Skip to content

Instantly share code, notes, and snippets.

@locontem
locontem / load_osm_history.py
Last active Jun 19, 2018 — forked from HeikkiVesanto/load_osm_history.py
pipe osmium-tools extracts into PostgreSQL
View load_osm_history.py
import os
import psycopg2
import subprocess
def runogr2ogr(infile):
# import the data
try:
command = ["ogr2ogr", "-f", "PostgreSQL",
OGR_CONN_STRING,
You can’t perform that action at this time.