[OSM-dev] pyosmium: osmium extract

koji higuchi koji51guchi at gmail.com
Sun Nov 11 00:52:30 UTC 2018


Thanks for your information.
Problem is that osmium is not available for windows, and it seems too
difficult to install in linux....

On Sun, Nov 11, 2018 at 12:46 AM Sarah Hoffmann <lonvia at denofr.de> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20181111/b3e309a8/attachment.html>


More information about the dev mailing list