I added some buildings to the osm website and set the height,and export the osm, and then I converted the osm to geojson, but there was a problem with the height attribute in the geojson code! MapBox can't get this property normally, so who can help me solve this problem!

The conversion tool is freely downloaded from the Internet

alt text

asked 07 Aug, 10:13

unity007's gravatar image

unity007
263
accept rate: 0%

edited 07 Aug, 10:41

1

The image you added is essentially illegible. You haven't told us what you are using to convert from OSM format to geojson, without that it is a bit difficult to help (any sane converter should simply keep the tags one way or the other).

(07 Aug, 10:24) SimonPoole ♦
2

"freely downloaded from the Internet" is not particularly helpful, a name or a URL would be much more.

(07 Aug, 10:48) SimonPoole ♦

You need to tell the conversion program to treat height as an attribute. This blog discusses how to configure ogr2ogr to treat additional tags as attributes, other systems will have different ways of doing it:

https://www.compose.com/articles/how-to-transform-and-use-openstreetmap-data-into-geojson-using-gdal/

permanent link

answered 07 Aug, 10:50

maxerickson's gravatar image

maxerickson
9.6k868135
accept rate: 31%

I did not learn to use the command line tool,Is there a direct conversion tool?

(08 Aug, 13:20) unity007

I solved the problem using the FME tool

permanent link

answered 09 Aug, 04:33

unity007's gravatar image

unity007
263
accept rate: 0%

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:

×490

question asked: 07 Aug, 10:13

question was seen: 190 times

last updated: 09 Aug, 04:33

powered by OSQA