NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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

awa5114
46226
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

ikonor
1.3k21119
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% 
(6.0807,47.4811,9.74985,50.3178)
permanent link

answered 30 Oct '18, 14:56

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

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:

×252

question asked: 30 Oct '18, 14:35

question was seen: 2,568 times

last updated: 31 Oct '18, 12:33

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