1 | osm2x3d
|
2 |
|
3 | # Intro
|
4 | This module aims to convert Open Street Map XML data to 3D scene.
|
5 | First output data formats:
|
6 |
|
7 | * X3D
|
8 | * GeoJSON
|
9 |
|
10 | The main script is this one:
|
11 |
|
12 | * osm2x3dTester.sh
|
13 |
|
14 | # Installation
|
15 | `$ npm install`
|
16 |
|
17 | # Test
|
18 | `$ osm2x3dTester.sh`
|
19 |
|
20 | The project is divided into several tools:
|
21 |
|
22 | * OsmToGeoJSon: convert XML OSM data to extended GeoJSON data
|
23 | * GeoJsonToJsonX3d: convert extended GeoJSON data to JSON X3D data
|
24 |
|
25 | ```
|
26 | __________________
|
27 | | |
|
28 | XML OSM --->| JsonOsmToGeoJSon | ---> GeoJSON
|
29 | |__________________|
|
30 | __________________
|
31 | | |
|
32 | GeoJSON --->| GeoJsonToJsonX3d | ---> JSON X3D
|
33 | |__________________|
|
34 |
|
35 | ```
|
36 |
|
37 | # Unit Tests
|
38 |
|
39 | * OsmToGeoJsonTester.js
|
40 | * GeoJsonToX3dJsonTester.js
|