Giter Site home page Giter Site logo

obj2geojson's Introduction

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!

obj2geojson's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.