Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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!

About

Converts OBJ files to 3D renderable GeoJSON

Resources

Releases

No releases published
You can’t perform that action at this time.