[OSM-dev] pyosmium: osmium extract
Sarah Hoffmann
lonvia at denofr.de
Sat Nov 10 15:46:34 UTC 2018
On Sat, Nov 10, 2018 at 11:24:35PM +0900, koji higuchi wrote:
> I mean if similar task could be done with pyosmium?
There is no built-in functionality for clipping by bounding box
in pyosmium. Doing this in python would be far too slow.
If you want to process a smaller extract with pyosmium, run
'osmium extract' first and then run your pyosmium script on
the resulting file.
Sarah
> On Sat, Nov 10, 2018 at 11:23 PM Jochen Topf <jochen at remote.org> wrote:
>
> > On Sat, Nov 10, 2018 at 09:47:40PM +0900, koji higuchi wrote:
> > > There is osmium extract command line available for osmium.
> > >
> > > osmium extract -b 11.35,48.05,11.73,48.25 germany-latest.osm.pbf \
> > > -o munich.osm.pbf
> > >
> > > How can I use it using the pyosmium?
> >
> > You don't. You use it using "osmium". That's why it is an "osmium"
> > command line. Osmium is a command line tool, PyOsmium is a Python
> > library based on the libosmium C++ library.
> >
> > Jochen
> > --
> > Jochen Topf jochen at remote.org https://www.jochentopf.com/
> > +49-351-31778688
> >
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
More information about the dev
mailing list