NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi!

I would like to parse *osm.pbf-files using osmosis as library inside my java application. I found this post which gives an idea how to do this. I successfully extracted the nodes/ways/relations inside a boundingbox and was also able to parse the nodes for some desired tags inside my application.

Since there are so many different tags in different situations, I would like to know, if osmosis can do some filtering for me? For example, currently it is enough for me, to extract all buildings inside the boundingbox. Is there a way to tell osmosis to do this for me, so I do not have to parse all nodes inside the boundingbox? Maybe there is a more general approach to this, e.g. to give osmosis a list of tags, for which it should parse?

asked 04 Sep '13, 11:03

Pille456's gravatar image

Pille456
16223
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×710
×252
×76

question asked: 04 Sep '13, 11:03

question was seen: 2,823 times

last updated: 04 Sep '13, 11:03

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum