Why not ask your question on the new OpenStreetMap Community Forum?

When I manually select an area to export, the minimum longitude value (for example) in the osm file is not actually the minimum longitude value across all nodes. So, when I parse the osm file to generate a map in my software program, the bounds cannot be generated correctly (unless I iterate through all nodes and find the minimum longitude value myself).

Am I missing something?

asked 30 Nov '10, 16:48

joelosm's gravatar image

accept rate: 0%

When you export an osm file you get all the nodes in the bbox, and all ways that contains a node in the bbox, and all the nodes that is contained in those ways, and all the relations that contains a node or a way that is exported.

This means that you can get nodes outside the bbox if it is contained in a way that touches the bbox. Note that you are not guaranteed to get all nodes of any area outside of the bbox. Depending on your application you might have to filter or ignore those nodes.

permanent link

answered 30 Nov '10, 18:00

Gnonthgol's gravatar image

Gnonthgol ♦
accept rate: 16%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 30 Nov '10, 16:48

question was seen: 4,315 times

last updated: 30 Nov '10, 18:00

powered by OSQA