Skip to content

Commit

Permalink
update to ogr2osm 1.1.2 interface
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoll1 committed Dec 28, 2022
1 parent 2ea4138 commit 2586e8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions osmand_osm/osm/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,10 @@ def oa_quality_check(source):
ogr2osmlogger.setLevel(logging.ERROR)
ogr2osmlogger.addHandler(logging.StreamHandler())
translation_object = addr_oa.OaTranslation()
ogr2osm.osm_geometries.OsmId.set_id(id)
datasource = ogr2osm.OgrDatasource(translation_object)
datasource.open_datasource("PG:dbname={0}".format(db_name))
datasource.set_query('select * from \"{0}\"'.format(source.table))
osmdata = ogr2osm.OsmData(translation_object)
osmdata = ogr2osm.OsmData(translation_object,start_id=id)
osmdata.process(datasource)
datawriter = ogr2osm.OsmDataWriter(source.path_osm)

Expand Down

0 comments on commit 2586e8b

Please sign in to comment.