Skip to content

Commit dac7659

Browse files
committed
fix: Import uriParse from rawdata instead of the local copy
1 parent 6aa2f5d commit dac7659

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

osm_rawdata/importer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
import pyarrow.parquet as pq
2929
from codetiming import Timer
30-
from osm_fieldwork.make_data_extract import uriParser
30+
from osm_rawdata.postgres import uriParser
3131
from progress.spinner import PixelSpinner
3232
from shapely import wkb
3333
from sqlalchemy import MetaData, cast, column, create_engine, select, table, text
@@ -73,7 +73,7 @@ def __init__(
7373
"CREATE EXTENSION IF NOT EXISTS postgis; CREATE EXTENSION IF NOT EXISTS hstore;CREATE EXTENSION IF NOT EXISTS dblink;"
7474
)
7575
self.db.execute(sql)
76-
self.db.commit()
76+
#self.db.commit()
7777

7878
Base.metadata.create_all(bind=engine)
7979

@@ -261,8 +261,8 @@ def main():
261261
log.addHandler(ch)
262262

263263
mi = MapImporter(args.uri)
264-
# if mi.importOSM(args.infile):
265-
if mi.importParquet(args.infile):
264+
if mi.importOSM(args.infile):
265+
#if mi.importParquet(args.infile):
266266
log.info(f"Imported {args.infile} into {args.uri}")
267267

268268

0 commit comments

Comments
 (0)