Skip to content

Commit a60483c

Browse files
committed
Readd mandatory prefix to avoid bbox filter collision
1 parent 3775ee1 commit a60483c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/overpass_api/statements/id_query.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Id_Query_Statement : public Output_Statement
3838
static Generic_Statement_Maker< Id_Query_Statement > statement_maker;
3939

4040
virtual Query_Constraint* get_query_constraint();
41-
41+
4242
const std::vector< uint64 >& get_refs() { return refs; }
4343
int get_type() const { return type; }
4444

@@ -63,7 +63,7 @@ class Id_Query_Statement : public Output_Statement
6363
result += " ref=\"" + ::to_string(refs[0]) + "\"";
6464
for (uint i = 1; i < refs.size(); ++i)
6565
result += " ref_" + ::to_string(i) + "=\"" + ::to_string(refs[i]) + "\"";
66-
66+
6767
return result + dump_xml_result_name() + "/>\n";
6868
}
6969

@@ -75,14 +75,14 @@ class Id_Query_Statement : public Output_Statement
7575
virtual std::string dump_ql_in_query(const std::string& indent) const
7676
{
7777
std::vector< uint64 >::const_iterator it = refs.begin();
78-
79-
std::string result = "(";
78+
79+
std::string result = (refs.size() > 1 ? "(id:" : "(");
8080
if (it != refs.end())
8181
result += ::to_string(*it++);
8282
while (it != refs.end())
8383
result += "," + ::to_string(*it++);
8484
result += ")";
85-
85+
8686
return result;
8787
}
8888

0 commit comments

Comments
 (0)