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 [1] 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() >>>handler.apply_file('mychange.xml>') but nothing happens. No errors, no outputs. I've tried to setup the osmium.io.Reader manually, and setting the entity bit: >>>reader = osmium.io.Reader('mychange.xml',osmium.osm.osm_entity_bits.CHANGESET) >>>omsium.apply(reader,handler) 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, Giovanni [1] http://osmcode.org/osmium-tool/manual.html#working-with-changesets
_______________________________________________ dev mailing list dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/dev