Skip to content

Commit

Permalink
fix: Import uriParse from rawdata instead of the local copy
Browse files Browse the repository at this point in the history
  • Loading branch information
rsavoye committed Oct 16, 2023
1 parent 6aa2f5d commit dac7659
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions osm_rawdata/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import pyarrow.parquet as pq
from codetiming import Timer
from osm_fieldwork.make_data_extract import uriParser
from osm_rawdata.postgres import uriParser
from progress.spinner import PixelSpinner
from shapely import wkb
from sqlalchemy import MetaData, cast, column, create_engine, select, table, text
Expand Down Expand Up @@ -73,7 +73,7 @@ def __init__(
"CREATE EXTENSION IF NOT EXISTS postgis; CREATE EXTENSION IF NOT EXISTS hstore;CREATE EXTENSION IF NOT EXISTS dblink;"
)
self.db.execute(sql)
self.db.commit()
#self.db.commit()

Base.metadata.create_all(bind=engine)

Expand Down Expand Up @@ -261,8 +261,8 @@ def main():
log.addHandler(ch)

mi = MapImporter(args.uri)
# if mi.importOSM(args.infile):
if mi.importParquet(args.infile):
if mi.importOSM(args.infile):
#if mi.importParquet(args.infile):
log.info(f"Imported {args.infile} into {args.uri}")


Expand Down

0 comments on commit dac7659

Please sign in to comment.