Hello! I'm trying to convert osm to kmz. I've found one solution, but I need to make osm much smaller. https://lh6.googleusercontent.com/-0azPV5xcqRU/UThetPP9JCI/AAAAAAAAAMM/4WYBEnYzP0M/s800/buildings_big.jpg

How can I keep only buildings in osm file? It will be perfect to keep buildings outline only with height visulization like on screenshot.

asked 19 Dec '16, 13:48

squadgazzz's gravatar image

squadgazzz
31336
accept rate: 0%

edited 19 Dec '16, 13:49

1

What is your current solution?

(19 Dec '16, 15:38) skorbut

convert OSM to OBJ > convert OBJ to KMZ

(21 Dec '16, 06:18) squadgazzz

You can use osmfilter a very simple tool for such task:

osmfilter my-data.osm --keep=building=* -o=my-data-buildings.osm
permanent link

answered 21 Dec '16, 11:08

Gagan's gravatar image

Gagan
2912413
accept rate: 14%

thank you! do you maybe know a better way to visualize buildings height and convert file to kmz/kml for google earth? now I'm doing this - convert OSM to OBJ > convert OBJ to KMZ. It doesnt work for files more than 100mb size. After filtering buildings I have 500mb size file..

(21 Dec '16, 11:38) squadgazzz

If you just want a visualization you can take a look at OSM2World.

(21 Dec '16, 12:06) scai ♦

@squadgazz I have not worked on OSM 3D building, so can not suggest on this.

(21 Dec '16, 16:41) Gagan

Are you familiar with the Overpass API? I've used Overpass Turbo to visualise a simple query to extract only building=* in your area:

http://overpass-turbo.eu/s/kMy

You can also get KML or geoJSON directly from the overpass API to import in Google Earth. In Overpass Turbo, go to 'Export', then choose the format you want.

permanent link

answered 20 Dec '16, 20:30

Stereo's gravatar image

Stereo
2562310
accept rate: 0%

edited 20 Dec '16, 20:34

cool,thanks. but how to visualize buildings height like on screenshot?

(21 Dec '16, 06:28) squadgazzz

also I have a problem with export the whole city. Moscow for example.. I already have osm file of this city(1500mb size). But don't know how to keep buildings only to make file much smaller

(21 Dec '16, 06:46) squadgazzz
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:

×38

question asked: 19 Dec '16, 13:48

question was seen: 1,815 times

last updated: 21 Dec '16, 16:41

powered by OSQA