[osmosis-dev] Extract Bounding Box

Tobias Knerr osm at tobias-knerr.de
Wed Jul 25 05:23:08 BST 2012


On 23.07.2012 18:13, Yiannis Gkoufas wrote:
> What I want to achieve is this: load the osm file in memory and make
> several bounding-box requests to it through Java.
> Can someone point me to any reference that will help me with that?

I've once written a forum post with some example code on how to load a
file into a Java application using Osmosis:

http://forum.openstreetmap.org/viewtopic.php?pid=213212#p213212

Maybe it helps you to get started. I've not used the bounding box
feature inside a Java application yet, but I assume it would be possible
to build a pipeline of Osmosis tasks by setting a BoundingBoxFilter
instance as the sink of the reader.

Let us know if you get it to work!

Regards,
Tobias



More information about the osmosis-dev mailing list