<div dir="ltr">Thanks for your information.<div>Problem is that osmium is not available for windows, and it seems too difficult to install in linux....</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Nov 11, 2018 at 12:46 AM Sarah Hoffmann <<a href="mailto:lonvia@denofr.de">lonvia@denofr.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Nov 10, 2018 at 11:24:35PM +0900, koji higuchi wrote:<br>
> I mean if similar task could be done with pyosmium?<br>
<br>
There is no built-in functionality for clipping by bounding box<br>
in pyosmium. Doing this in python would be far too slow.<br>
<br>
If you want to process a smaller extract with pyosmium, run<br>
'osmium extract' first and then run your pyosmium script on<br>
the resulting file.<br>
<br>
Sarah<br>
<br>
<br>
> On Sat, Nov 10, 2018 at 11:23 PM Jochen Topf <<a href="mailto:jochen@remote.org" target="_blank">jochen@remote.org</a>> wrote:<br>
> <br>
> > On Sat, Nov 10, 2018 at 09:47:40PM +0900, koji higuchi wrote:<br>
> > > There is osmium extract command line available for osmium.<br>
> > ><br>
> > > osmium extract -b 11.35,48.05,11.73,48.25 germany-latest.osm.pbf \<br>
> > > -o munich.osm.pbf<br>
> > ><br>
> > > How can I use it using the pyosmium?<br>
> ><br>
> > You don't. You use it using "osmium". That's why it is an "osmium"<br>
> > command line. Osmium is a command line tool, PyOsmium is a Python<br>
> > library based on the libosmium C++ library.<br>
> ><br>
> > Jochen<br>
> > --<br>
> > Jochen Topf <a href="mailto:jochen@remote.org" target="_blank">jochen@remote.org</a> <a href="https://www.jochentopf.com/" rel="noreferrer" target="_blank">https://www.jochentopf.com/</a><br>
> > +49-351-31778688<br>
> ><br>
<br>
> _______________________________________________<br>
> dev mailing list<br>
> <a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
> <a href="https://lists.openstreetmap.org/listinfo/dev" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/dev</a><br>
<br>
</blockquote></div>