I've downloaded the United States .osm.pbf from Geofabrik. To convert the map data from .osm.pbf to GeoJSON, I used the following osmium command:
osmium export UNITED_STATES.pbf -o UNITED_STATES.geojson --index-type dense_file_array

The output GeoJSON appears to only contain points (e.g trees, buildings, powerlines) and no roads/polygons.

The progress bar in the terminal indicates that osmium has finished.

Do I need to include extra arguments to export other geometries?

asked 23 Jul, 15:48

tussiez's gravatar image

tussiez
16113
accept rate: 0%


The program isn't finished when the progress bar is finished but when the program is finished. The progress bar is, unfortunately, not working that great for osmium export. I suspect when you wait for the program to actually finish, you'll see all the data in the file.

Also: When using dense_file_array, you should add a file name: --index-type dense_file_array,nodes.dat. Otherwise the data goes into a file that you can't see which can be confusing.

permanent link

answered 23 Jul, 16:36

Jochen%20Topf's gravatar image

Jochen Topf
4.8k54769
accept rate: 30%

I'll wait longer. When adding the file name to dense_file_array, osmium throws an argument error.
Unknown index type 'dense_file_array,index.dat'. Use --show-index-types or -I to get a list.

(23 Jul, 19:14) tussiez

Then your osmium is too old. There was a bug in osmium a while back but that has been fixed.

(23 Jul, 20:55) Jochen Topf
Your answer
toggle preview

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:

×24

question asked: 23 Jul, 15:48

question was seen: 321 times

last updated: 23 Jul, 20:55

powered by OSQA