File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/overpass_api/statements Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments