[OSM-talk] Data filter

Imre Samu pella.samu at gmail.com
Mon Jan 12 12:49:36 UTC 2015


>How can I select ‘my contributions in UK’ and output as XML (or JSON?).
>Need a file that can be imported in to standard GIS packages.

Hi Steve,

*------- hard way --------*

see http://wiki.openstreetmap.org/wiki/Planet.osm/full  and filter data
with your user id.

#1  download full history
        pbf: http://planet.openstreetmap.org/pbf/full-history/
(42Gb  !!! )
        xml: http://planet.openstreetmap.org/planet/full-history/    (59Gb)

#2  cut  area  with osm-history-splitter , smaller the better  ( UK )
     https://github.com/MaZderMind/osm-history-splitter

    [ there are some history extracts but no UK ,
        http://osm.personalwerk.de/full-history-extracts/2014-11-24/
        but you can test your workflow with nepal.osh.pbf ( it is only 23M
) ]

#3. Load to PostgreSQL database  with osm-history-importer
      https://github.com/MaZderMind/osm-history-renderer

#4. Filter PostgreSQL data ( hist_point ; hist_line ; hist_polygon ) with
your "user_name"
       schema:

https://github.com/MaZderMind/osm-history-renderer/blob/master/importer/scheme/00-before.sql


alternative solution:
-  using osmium library and write  a simple code to
        -  filter OSM history data with your user_id
   (     with pyosmium       [ ptyhon library       :
https://github.com/osmcode/pyosmium      ]
     or with  node-osmium [ Javascript library :
https://github.com/osmcode/node-osmium ]

Cheers,
  Imre


2015-01-12 10:30 GMT+01:00 Steve Chilton <S.L.Chilton at mdx.ac.uk>:

> Can anyone help me with filtering OSM data please?
>
> For a project I am working on I need data on my contributions to the
> project.
>
> How can I select ‘my contributions in UK’ and output as XML (or JSON?).
>
> Need a file that can be imported in to standard GIS packages.
>
> Any help gratefully received.
>
>
>
> Cheers
>
> Steve
>
>
>
> Steve Chilton FSEDA, Teaching Fellow
>
> Lead Academic Developer
>
> Centre for Academic Practice Enhancement (CAPE)
>
> Middlesex University
>
> phone: 020 8411 5355
>
> email: steve8 at mdx.ac.uk
>
> Profile: http://www.middlesex.wikispaces.net/user/view/steve8
>
>
>
> Blog: http://itsahill.wordpress.com/
>
> Chair of the Society of Cartographers: http://www.soc.org.uk/
>
> Chair of ICA Neocartography Commission: http://neocartography.icaci.org/
>
>
>
> *[image: MDX LOGO]*
>
>
>
>
> *
> ---------------------------------------------------------------------------
> *
>
> *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.
>
> 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.
> *
>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20150112/2ef38bc3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3163 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20150112/2ef38bc3/attachment.jpg>


More information about the talk mailing list