<div dir="ltr"><div>>How can I select ‘my contributions in UK’ and output as XML (or JSON?).</div><div>>Need a file that can be imported in to standard GIS packages.</div><div><br></div><div>Hi Steve,</div><div><br></div><div><b><font color="#0000ff">------- hard way --------</font></b></div><div><br></div><div>see <a href="http://wiki.openstreetmap.org/wiki/Planet.osm/full">http://wiki.openstreetmap.org/wiki/Planet.osm/full</a>  and filter data with your user id.</div><div><br></div><div>#1  download full history</div><div>        pbf: <a href="http://planet.openstreetmap.org/pbf/full-history/">http://planet.openstreetmap.org/pbf/full-history/</a>         (42Gb  !!! )</div><div>        xml: <a href="http://planet.openstreetmap.org/planet/full-history/">http://planet.openstreetmap.org/planet/full-history/</a>    (59Gb)</div><div><br></div><div>#2  cut  area  with osm-history-splitter , smaller the better  ( UK ) </div><div>     <a href="https://github.com/MaZderMind/osm-history-splitter">https://github.com/MaZderMind/osm-history-splitter</a></div><div>    </div><div>    [ there are some history extracts but no UK ,  </div><div>        <a href="http://osm.personalwerk.de/full-history-extracts/2014-11-24/">http://osm.personalwerk.de/full-history-extracts/2014-11-24/</a> </div><div>        but you can test your workflow with nepal.osh.pbf ( it is only 23M ) ]</div><div><br></div><div>#3. Load to PostgreSQL database  with osm-history-importer </div><div>      <a href="https://github.com/MaZderMind/osm-history-renderer">https://github.com/MaZderMind/osm-history-renderer</a></div><div><br></div><div>#4. Filter PostgreSQL data ( hist_point ; hist_line ; hist_polygon ) with your "user_name"</div><div>       schema: </div><div>       <a href="https://github.com/MaZderMind/osm-history-renderer/blob/master/importer/scheme/00-before.sql">https://github.com/MaZderMind/osm-history-renderer/blob/master/importer/scheme/00-before.sql</a></div><div><br></div><div><br></div><div>alternative solution:</div><div>-  using osmium library and write  a simple code to </div><div>        -  filter OSM history data with your user_id</div><div>   (     with pyosmium       [ ptyhon library       : <a href="https://github.com/osmcode/pyosmium">https://github.com/osmcode/pyosmium</a>      ]  </div><div>     or with  node-osmium [ Javascript library : <a href="https://github.com/osmcode/node-osmium">https://github.com/osmcode/node-osmium</a> ]</div><div><br></div><div>Cheers,</div><div>  Imre</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-12 10:30 GMT+01:00 Steve Chilton <span dir="ltr"><<a href="mailto:S.L.Chilton@mdx.ac.uk" target="_blank">S.L.Chilton@mdx.ac.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal">Can anyone help me with filtering OSM data please?<u></u><u></u></p><p class="MsoNormal">For a project I am working on I need data on my contributions to the project.<u></u><u></u></p><p class="MsoNormal">How can I select ‘my contributions in UK’ and output as XML (or JSON?).<u></u><u></u></p><p class="MsoNormal">Need a file that can be imported in to standard GIS packages.<u></u><u></u></p><p class="MsoNormal">Any help gratefully received.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Cheers<u></u><u></u></p><p class="MsoNormal">Steve<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Steve Chilton FSEDA, Teaching Fellow<u></u><u></u></p><p class="MsoNormal">Lead Academic Developer<u></u><u></u></p><p class="MsoNormal">Centre for Academic Practice Enhancement (CAPE) <u></u><u></u></p><p class="MsoNormal">Middlesex University<u></u><u></u></p><p class="MsoNormal">phone: 020 8411 5355<u></u><u></u></p><p class="MsoNormal">email: <a href="mailto:steve8@mdx.ac.uk" target="_blank"><span style="color:blue">steve8@mdx.ac.uk</span></a><u></u><u></u></p><p class="MsoNormal">Profile: <a href="http://www.middlesex.wikispaces.net/user/view/steve8" target="_blank"><span style="color:blue">http://www.middlesex.wikispaces.net/user/view/steve8</span></a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Blog: <a href="http://itsahill.wordpress.com/" target="_blank"><span style="color:blue">http://itsahill.wordpress.com/</span></a><u></u><u></u></p><p class="MsoNormal">Chair of the Society of Cartographers: <a href="http://www.soc.org.uk/" target="_blank"><span style="color:blue">http://www.soc.org.uk/</span></a> <u></u><u></u></p><p class="MsoNormal">Chair of ICA Neocartography Commission: <a href="http://neocartography.icaci.org/" target="_blank"><span style="color:blue">http://neocartography.icaci.org/</span></a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><b><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><img border="0" width="125" height="49" src="cid:image001.jpg@01D02E4A.6A7D0460" alt="MDX LOGO"></span></i></b><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div>
<p></p><pre><br>
<i>
---------------------------------------------------------------------------
</i>
<br>
<i>Please note that Middlesex University's preferred way of receiving all correspondence is via email in line with our Environmental Policy.   All incoming post to Middlesex University is opened and scanned by our digital document handler, CDS, and then emailed to the recipient.
<p>
If you do not want your correspondence to Middlesex University processed in this way please email the recipient directly. Parcels, couriered items and recorded delivery items will not be opened or scanned by CDS.  There are items which are "exceptions" which will be opened by CDS but will not be scanned a full list of these can be obtained by contacting the University.
</p></i>
</pre><p></p>
<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></blockquote></div><br></div>