[OSM-dev] Read osmChange files with Pyosmium
lonvia at denofr.de
Sat Mar 18 08:20:26 UTC 2017
the ChangeSet type is currently not exported into a python type
but it's really easy to do. Could you open a feature request at
https://github.com/osmcode/pyosmium/issues and I'll see to it to
add support for it.
On Fri, Mar 17, 2017 at 12:33:01PM +0100, G. Allegri wrote:
> I've just started giving a look to Pyosmium. I've done tests based on the
> examples from its repo and everything works fine.
> I would like to replicate osmium changeset-filter  and I'm striving to
> make the osmium.SimpleHandler parse the changesets from an osmChange file.
> I've tried:
> >>>class MyHandler(osmium.SimpleHandler):
> ... def changeset(self,changeset):
> ... print changeset
> >>>handler = MyHandler()
> but nothing happens. No errors, no outputs.
> I've tried to setup the osmium.io.Reader manually, and setting the entity
> >>>reader =
> No output again.
> First question: is it possible to parse osmChanges with Pyosmium? If yes,
> what's the right way to do it?
> Thanks a lot,
>  http://osmcode.org/osmium-tool/manual.html#working-with-changesets
> dev mailing list
> dev at openstreetmap.org
More information about the dev