From 27b8d7002d192bdb214e7bacb8474abb7234f7bf Mon Sep 17 00:00:00 2001 From: Emillio Mariscal Date: Mon, 23 Oct 2023 10:02:59 -0400 Subject: [PATCH] Remove version for norefs option --- src/raw/queryraw.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/raw/queryraw.cc b/src/raw/queryraw.cc index 20b79bb6..38bdd8a4 100644 --- a/src/raw/queryraw.cc +++ b/src/raw/queryraw.cc @@ -477,7 +477,7 @@ QueryRaw::getWaysFromDBWithoutRefs(int lastid, const std::string &tableName) { } else { waysQuery = "SELECT osm_id, ST_AsText(geom, 4326)"; } - waysQuery += ", version, tags FROM " + tableName + " where osm_id > " + std::to_string(lastid) + " order by osm_id asc limit 500;"; + waysQuery += ", tags FROM " + tableName + " where osm_id > " + std::to_string(lastid) + " order by osm_id asc limit 500;"; auto ways_result = dbconn->query(waysQuery); // Fill vector of OsmWay objects @@ -492,10 +492,9 @@ QueryRaw::getWaysFromDBWithoutRefs(int lastid, const std::string &tableName) { if (tableName == QueryRaw::polyTable) { way.polygon = { {std::begin(way.linestring), std::end(way.linestring)} }; } - way.version = (*way_it)[2].as(); - auto tags = (*way_it)[3]; + auto tags = (*way_it)[2]; if (!tags.is_null()) { - auto tags = parseTagsString((*way_it)[3].as()); + auto tags = parseTagsString((*way_it)[2].as()); for (auto const& [key, val] : tags) { way.addTag(key, val);