Contribute to project


Print (out) Improve page

The out action can be configured with an arbitrary number of parameters that are appended, separated by whitespace, between the word out and the semicolon.

The out action takes an input set. It doesn’t return a result set. The input set can be changed by prepending the variable name.

Allowed values, in any order, are:

  • one of the following the degree of verbosity; default is body:

    • ids: Print only the ids of the elements.
    • skel: Print also the information necessary for geometry. These are also coordinates for nodes and way and relation member ids for ways and relations.
    • body: Print all information necessary to use the data. These are also tags for all elements and the roles for relation members.
    • tags: Print only ids and tags for each element and not coordinates or members.
    • meta: Print everything known about the elements. This includes additionally to body for all elements the version, changeset id, timestamp and the user data of the user that last touched the object.
  • one of the following modificators for derived information:

    • bb: Adds the bounding box of each element to the element. For nodes this is equivalent to “geom”. For ways it is the enclosing bounding box of all nodes. For relations it is the enclosing bounding box of all node and way members, relations as members have no effect.
    • center: This adds the center of the above mentioned bounding box to ways and relations. Note: The center point is not guaranteed to lie inside the polygon (example).
    • geom: Add the full geometry to each object. This adds coordinates to each node, to each node member of a way or relation, and it adds a sequence of “nd” members with coordinates to all relations.

The attribute “geom” can be followed by a bounding box in the format “(south,west,north,east)”. In this case only coordinates that are inside the bounding box are produced. For way segments also the first coordinate outside the bounding box is produced to allow for properly formed segments.

  • One of the following for the sort order can be added. Default is asc.
    • asc: Sort by object id.
    • qt: Sort by quadtile index; this is roughly geographical and significantly faster than order by ids.
  • a non-negative integer for the maximum number of elements to print. Default is no limit.