<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
三浦です。<br>
<br>
Overpass APIの新バージョン発表がありましたので、共有します。<br>
Overpassは、OSMのメタデータ(日付、バージョン、チェンジセットID、ユーザ名)などを<br>
提供できるしくみを備えたとのこと。<br>
<br>
OSM3 projectの新しい名前だとのこと。<br>
XAPIみたいな、読み込みONLYのXMLで取り出せるAPIだそうです。<br>
<br>
どんなふうに使えるか、興味があります。<br>
<br>
XAPIの互換レイヤーもあるそうです。<br>
<br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject: </th>
<td>[OSM-talk] Overpass API: new version 0.6.93, now with meta
data</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
<td>Tue, 30 Aug 2011 21:38:44 +0200</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
<td>Roland Olbricht <a class="moz-txt-link-rfc2396E" href="mailto:roland.olbricht@gmx.de"><roland.olbricht@gmx.de></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Reply-To:
</th>
<td><a class="moz-txt-link-abbreviated" href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>Hello everybody,
I proudly present the new version 0.6.93 of Overpass API.
Overpass API now also provides the OSM meta data (timestamp, version,
changeset id, user name, and user id). This allows to use the data directly in
e.g. JOSM, including re-upload. It is the most-requested feature at the
moment.
Other features are a hardening of the software against file errors. The
<print/> statement now allows an attribute "limit" to limit the size of the
response. And a reworked planet import should now work about faster than
before.
Read more information on
<a class="moz-txt-link-freetext" href="http://wiki.openstreetmap.org/wiki/Overpass_API">http://wiki.openstreetmap.org/wiki/Overpass_API</a>
For the next version, which should be 0.7, I'll enable bounding boxes also
directly for ways and relations. Furthermore, the scripting language will get
some clean-up around the query statement and a concise semantic suitable for
effective GET requests. I hope, I'll complete that version in September.
Some details about the meta data:
As expected, this is twice as much more data (65 GB instead of 35 GB) and
makes the server an order of magnitude slower. To mitigate the effects on
those that don't need meta data, the feature must be explicitly requested. In
OSM script, this is done via setting the respective <print/> statement to
mode="meta". In the XAPI compatibility layer, add the directive [@meta].
The meta data give rise to the following special keys inside the XAPI
compatibility layer:
[@meta]
lets the database include meta data (version, timestamp, changeset
id, user name and user id).
[@user=Roland Olbricht], [@uid=65282]
restricts the data to data last edited by the user. He or she can
be identified by name or by user id.
[@newer=2011-08-01]
restricts the data to only those data last edited after the given
date. This is only possible in combination with another conditional.
The corresponding tags in the scripting language are:
<print mode="meta"/> instead of <print/>
for the print statements that shall print meta data.
<user name="Roland Olbricht"/>, <user uid="65282"/>
can be used as a standalone statement and as a sub-statement of a query
statement.
<newer than="2011-08-01"/>
can only be used as sub-statement of a query statement.
The [@changeset] special key is not realized. I want to keep up the
possibility to restart at any time for a recent Planet.osm, and that
Planet.osm won't contain elements that have been deleted meanwhile. Even
worse, the same is true for an old version referred in the changeset if the
element has been changed since then. A so much crippled response isn't useful
any more. These problems do have also an impact on the user and newer queries,
but I estimate them to be still useful.
Cheers,
Roland
_______________________________________________
talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstreetmap.org/listinfo/talk">http://lists.openstreetmap.org/listinfo/talk</a>
</pre>
</body>
</html>