Skip to content

Instantly share code, notes, and snippets.

@HeikkiVesanto
HeikkiVesanto / load_osm_history.py
Last active February 26, 2024 15:31
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,