Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
Remove version for norefs option
Browse files Browse the repository at this point in the history
  • Loading branch information
emi420 committed Oct 23, 2023
1 parent 35958c2 commit 27b8d70
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/raw/queryraw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<long>();
auto tags = (*way_it)[3];
auto tags = (*way_it)[2];
if (!tags.is_null()) {
auto tags = parseTagsString((*way_it)[3].as<std::string>());
auto tags = parseTagsString((*way_it)[2].as<std::string>());
for (auto const& [key, val] : tags)
{
way.addTag(key, val);
Expand Down

0 comments on commit 27b8d70

Please sign in to comment.