GithubHelp home page GithubHelp logo

gagaus / wwwosm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trilogissrl/wwwosm

0.0 2.0 1.0 90.41 MB

NASA World Wind Europa Challenge 2015

License: Apache License 2.0

JavaScript 98.01% Shell 0.03% HTML 1.96%

wwwosm's Introduction

wwwOSM

The project aims to integrate geographic information data provided by OpenStreetMap(OSM) with Nasa Web World Wind virtual globe. The outcome allows the users to access the information currently available in the World Wind environment and the data provided by the bigger collaborative project in the world of geographic data.

wwwOSM (Web World Wind - OpenStreetMap) is made available as a web application and compatible with all the devices, both desktop and mobile, which satisfy the compatibility requirements.

The project is composed by the front-end/client side, which allows the users to handle geographic information, and the back-end/server side, which deals with the management and maintenance of OSM data, and provide the services for data visualization.

Prerequisites

Environment

  • Node.js
  • PostgreSQL
  • Postgis extension
  • A database called gis

Node.js modules required:

  • node-simple-router,npm install node-simple-router
  • node postgres, npm install pg

Configuration

Geodata is stored in a local database. The credential have be set in the file backend/www-osm/db/db.js and backend/www-osm_import-utility/db/db.js. The fields to fill are:

/**
 * Username for the database connection
 * @type {string}
 */
var username = "<username>";

/**
 * Password for the database connection
 * @type {string}
 */
var password = "<password>";

/**
 * Name of the database
 * @type {string}
 */
var database = "<database>";

/**
 * Address of the database
 * @type {string}
 */
var address = "<address>";

The database schema can be found at db/database_schema.html.

Run

  • Install Node
  • Run run.sh
  • APIs are available at http://wwwosm.trilogis.it/api/

Import OSM Data

The OSM data can be import using tool available at frontend/import.html [Demo on wwwosm.trilogis.it/import.html].

Import is applyed selecting an existence source or creating a new one. The creation of a new source requires:

  • the URL of the file
  • the name of the file

The Import process is perfomed using the osm2pgsql tool (provided by OpenStreetMap) for the raw import of the geometries, and then a custom tool for the data organization.

The latest tool performs the following operation:

  • insert or update the records avoiding duplicates
  • organize the names of the geometries in order to improve the search performances
  • assign a LOD and a category to each geometry

Style Customization

The styles can be customized using the web tool located at frontend/styles.html.

Further information can be found at our website

Data view

The data view interface is available at frontend/index.html [Demo on wwwosm.trilogis.it]

Credits

Author: Gustavo German Soria (Trilogis Srl)

Screen Screen Screen

Further information and screenshots can be found at our website

NASA and the NASA logo are registered trademarks of NASA, used with permission.

wwwosm's People

Contributors

gagaus avatar gustavosoria avatar beak-man avatar

Watchers

 avatar  avatar

Forkers

beak-man

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.