All Projects → OSMBuildings → OBJ2GeoJSON

OSMBuildings / OBJ2GeoJSON

Licence: other
Converts OBJ files to 3D renderable GeoJSON

Programming Languages

javascript
184084 projects - #8 most used programming language

OBJ2GeoJSON

Converts OBJ files to 3D renderable GeoJSON

The code is tailored to Berliner Morgenpost visualization "Berlins neue Skyline". For your own purposes you need to change settings inside /index.js and most likely geographic transformation in /lib/index.js

To match dependencies run first

npm install

Then edit index.js to match your source files location(s). Locate following line and add entries as you need. The x, y, z are metric offsets. It means Berlin data is projected in Söldner reference system. The offsets basically define where the result should be located. A z value allows you to adjust the vertical position.

var files = [{ name:'o2-vor90', x: X, y: Y, z: -9 }];

Finally just run the converter with

node index.js

Let it do it's work. Shouldn't take long.

If anyone is interested in making this more flexible, especially regarding projections, go ahead!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].