<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">> if I would want to compile osmium myself the README says</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px">
<span style="font-family:arial,sans-serif;font-size:12.8000001907349px">> that no files need to be build and doesn't say where osmium comes from?<br></span><br>I have used the code and instructions from this 2 repo<div>
<a href="https://github.com/osmcode/libosmium">https://github.com/osmcode/libosmium</a> ( osmium library )<br> <a href="https://github.com/osmcode/osmium-tool">https://github.com/osmcode/osmium-tool</a> ( osmium command line tool )<br>
<br>if you have a some problems with the installation, <br> then I can create a Docker Container ( <a href="http://www.docker.com">www.docker.com</a> ) for you. </div><div><br><div>Imre</div><div><br></div><div><br></div>
<div><br></div><div class="gmail_extra"><div class="gmail_quote">2014-08-29 15:55 GMT+02:00 Richard Z. <span dir="ltr"><<a href="mailto:ricoz.osm@gmail.com" target="_blank">ricoz.osm@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Fri, Aug 29, 2014 at 02:22:10PM +0200, Imre Samu wrote:<br>
<br>
Hi Imre,<br>
<br>
<br>
thousands thanks - everything seems to work perfectly as described.<br>
<br>
one question - if I would want to compile osmium myself the README says<br>
that no files need to be build and doesn't say where osmium comes from?<br>
<br>
<br>
Richard<br>
<div class=""><br>
><br>
> > clever query or script<br>
><br>
> maybe you can use OSM OPL format this ad-hoc query,<br>
> and process the data with sed, awk, grep .<br>
><br>
> my draft ubuntu script - with comments.<br>
><br>
> <a href="https://gist.github.com/ImreSamu/be49fd1ce511975325d2#file-bridge_swing-sh" target="_blank">https://gist.github.com/ImreSamu/be49fd1ce511975325d2#file-bridge_swing-sh</a><br>
><br>
> result ( Overpass-Wizard Query - but you can export the data to JOSM )<br>
><br>
> <a href="https://gist.github.com/ImreSamu/a2dd0a8c25f0fea5284c#file-bridge_swing_overpass_wizard-md" target="_blank">https://gist.github.com/ImreSamu/a2dd0a8c25f0fea5284c#file-bridge_swing_overpass_wizard-md</a><br>
><br>
><br>
> the example result - Overpass-Wizard Query :<br>
><br>
> type:way and ( id:28134411 or id:29295367 or id:30178341 or id:30178382 or<br>
> id:33132931 or id:33132936 or id:33132949 ) global<br>
><br>
><br>
> ( <a href="http://wiki.openstreetmap.org/wiki/Overpass_turbo/Wizard" target="_blank">http://wiki.openstreetmap.org/wiki/Overpass_turbo/Wizard</a> -> see<br>
> "Meta-Data Filters" )<br>
><br>
</div>> *How to check the query *<br>
><br>
> ** go <a href="http://overpass-turbo.eu/" target="_blank">http://overpass-turbo.eu/</a> <<a href="http://overpass-turbo.eu/" target="_blank">http://overpass-turbo.eu/</a>> *<br>
> ** select "Wizard"*<br>
> * * copy /paste the generated query : " type:way and ( id:27001207 or<br>
<div class="">> id:72584563 ) global"*<br>
</div>> * * "Build and run query" -> and check the result.*<br>
> * * if you got timeout error, then check the generated script timeout (<br>
<div class="">> "<osm-script output="json" timeout="25">" ) and set to 200 - and rerun *<br>
</div>> ** you can "load data into an OSM editor: JOSM," - see "Export" menu *<br>
<div class="">><br>
><br>
><br>
><br>
> >From the OSM OPL history - very easy to grep the first contributor<br>
><br>
</div>> # convert the osm history file to OPL ( *osmium cat w11323607.osh -f opl* )<br>
<div class="">> # sample OSM History OPL file:<br>
> # w100646626 v1 dV c7343540 t2011-02-20T15:08:57Z i37137<br>
> uDerick%0020Rethans Tbridge=yes,highway=footway<br>
> Nn309461645,n1163494643<br>
> # w100646626 v2 dV c12447614 t2012-07-23T09:52:38Z i404175 urickogden<br>
> Tbridge=swing,highway=footway Nn309461645,n1163494643<br>
> # w100646626 v3 dV c18538313 t2013-10-25T16:16:57Z i24119 uMauls<br>
> Tbridge=swing,highway=footway Nn309461645,n2508499967<br>
> # w100646626 v4 dV c25024407 t2014-08-26T10:51:45Z i66391 ugeozeisig<br>
> Tbridge=movable,bridge:movable=swing,highway=footway<br>
> Nn309461645,n2508499967<br>
> # w100646626 v5 dV c25050883 t2014-08-27T12:42:02Z i66391 ugeozeisig<br>
> Tbridge=swing,highway=footway Nn309461645,n2508499967<br>
> #<br>
> # filter the results by the first contributor who added bridge=swing to the way<br>
</div>> # ( *egrep -m 1 '( T|,)bridge=swing'* )<br>
<div class=""><div class="h5">> #result: v2<br>
> # w100646626 v2 dV c12447614 t2012-07-23T09:52:38Z i404175 urickogden<br>
> Tbridge=swing,highway=footway Nn309461645,n1163494643<br>
> #<br>
><br>
><br>
> The OPL format - from the OSMIUM manual:<br>
><br>
> v - Version<br>
><br>
> d - Deleted flag ('V' - visible or 'D' - deleted)<br>
><br>
> c - Changeset ID<br>
><br>
> t - Timestamp (ISO Format)<br>
><br>
> i - User ID<br>
><br>
> u - Username<br>
><br>
> T - Tags<br>
><br>
> x - Longitude (nodes only)<br>
><br>
> y - Latitude (nodes only)<br>
><br>
> N - Nodes (ways only)<br>
><br>
> M - Members (relations only)<br>
><br>
><br>
> you can find other interesting examples in the OSMIUM manual<br>
><br>
> "Find all users who have created post boxes:"<br>
><br>
> egrep ' v1 ' data.osm.opl | egrep 'amenity=post_box' | cut -d' ' -f7 |<br>
> cut -c2- | sort -u<br>
><br>
><br>
> OSMIUM tool - and more examples :<br>
><br>
> <a href="http://osmcode.org/libosmium/manual/libosmium-manual.html#output-formats" target="_blank">http://osmcode.org/libosmium/manual/libosmium-manual.html#output-formats</a><br>
> <a href="https://www.sotm-eu.org/en/slots/36" target="_blank">https://www.sotm-eu.org/en/slots/36</a><br>
> <a href="https://www.sotm-eu.org/slides/44.pdf" target="_blank">https://www.sotm-eu.org/slides/44.pdf</a><br>
><br>
><br>
><br>
> Imre<br>
><br>
><br>
><br>
> 2014-08-28 12:39 GMT+02:00 Richard Z. <<a href="mailto:ricoz.osm@gmail.com">ricoz.osm@gmail.com</a>>:<br>
><br>
> > Hi,<br>
> ><br>
> > trying to clean up bridge=swing as far as possible. There was at least<br>
> > user in the past who used the combination systematically wrong, so I want<br>
> > to split the result by user who introduced the bridge=swing.<br>
> ><br>
> > To make things complicated - a few days ago one contributor did a well<br>
> > meant effort to convert all<br>
> > bridge=swing -> bridge=movable+bridge:movable=swing<br>
> > and reverted that edit because there were too many errors in it. Hence<br>
> > doing a naive search for user doesn't work.<br>
> ><br>
> > So I want to :<br>
> > * find all bridge=swing<br>
> > * split results by the first contributor who added bridge=swing<br>
> > to the way<br>
> > * get the results into JOSM for examination and editing<br>
> ><br>
> > Tia for any hints,<br>
> > Richard<br>
> ><br>
> > _______________________________________________<br>
> > talk mailing list<br>
> > <a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
> > <a href="https://lists.openstreetmap.org/listinfo/talk" target="_blank">https://lists.openstreetmap.org/listinfo/talk</a><br>
> ><br>
<br>
</div></div></blockquote></div><br></div></div></div>