Hi Giovanni,

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.

Kind regards

Sarah


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 [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


_______________________________________________
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev

Reply via email to