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

Is there a way to obtain the extents of a pbf file (top, bottom, left, right) using osmosis or similar tool?

asked 30 Oct '18, 14:35

awa5114's gravatar image

accept rate: 0%

The osmconvert --out-statistics option returns lat/lon min/max values:

osmconvert liechtenstein.osm.pbf --out-statistics

osmconvert binaries are also available for Windows.

permanent link

answered 31 Oct '18, 10:55

ikonor's gravatar image

accept rate: 18%

Excellent, I knew there had to be a way through the regular tools!

(31 Oct '18, 12:33) awa5114

This can be done with the osmium command line tool from https://github.com/osmcode/osmium-tool (also present in recent Linux distributions):

% osmium fileinfo -eg data.bbox myfile.osm.pbf
[======================================================================] 100% 
permanent link

answered 30 Oct '18, 14:56

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

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 Oct '18, 14:35

question was seen: 2,230 times

last updated: 31 Oct '18, 12:33

powered by OSQA