Commit 69e2f089 authored by Joe TS Dell's avatar Joe TS Dell
Browse files

up

parent c4dc3148
Pipeline #2807 canceled with stage
......@@ -9,6 +9,9 @@
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="source/bootstrap.min.css">
<link rel="stylesheet" href="index.css">
<link rel="icon"
type="image/ico"
href="favicon.ico">
<title>Web-based Visualization of the 3D City Models</title>
<style>
table {
......@@ -49,7 +52,7 @@
<div class="row">
<div class="col">
<h1>Creating Interactive 3D Web Maps from 3D City Models with CesiumJS</h1>
<h3>The NCG Symposium | Geocongres MRDH | ICA workshop 2020 (Nov 5, 2020)</h3>
<h6>by <a href="https://www.hft-stuttgart.de/p/thunyathep-santhanavanich">Joe T.S.</a></h6>
</div>
<div class="col-md-auto">
<!-- <a href="https://www.hft-stuttgart.de"><img src="HFT_logo.jpg"
......@@ -60,7 +63,13 @@
</div>
<div style="margin:20px; padding:30px">
<h1>Introduction</h1>
<p>The recent technology of virtual globe-based 3D visualization is a unique opportunity to facilitate advanced analysis and visualization tasks in a variety of application domains such as urban planning, indoor/outdoor pedestrian navigation, environmental simulations, cultural heritage, or facility management. One core data which make this concept come true is the development of the CityGML models by Open Geospatial Consortium (OGC — https://www.ogc.org/). CityGML is the global data model schema for describing 3D geo-spatially-enabled urban models. There are more and more cities that provide open-source CityGML models publicly.</p>
<p>The recent technology of virtual globe-based 3D visualization is a unique opportunity to facilitate advanced
analysis and visualization tasks in a variety of application domains such as urban planning, indoor/outdoor
pedestrian navigation, environmental simulations, cultural heritage, or facility management. One core data
which make this concept come true is the development of the CityGML models by Open Geospatial Consortium
(OGC — https://www.ogc.org/). CityGML is the global data model schema for describing 3D
geo-spatially-enabled urban models. There are more and more cities that provide open-source CityGML models
publicly.</p>
<img src="img/6.JPG" alt="" style="width: 800px;">
<br>(An Expected Output from This Workshop — 3D Web App with 3D Semantic Building Models in Den Haag Area)
......@@ -68,17 +77,30 @@
<hr>
<h3>Architecture and Workflow</h3>
<img src="img/architecture.JPG" alt="" style="width: 600px;"><br>
The overall system architecture of the 3D web-based app is shown in the figure above. It includes four main components: CityGML dataset, 3D Tiles dataset, Web server, and Users.
The overall system architecture of the 3D web-based app is shown in the figure above. It includes four main
components: CityGML dataset, 3D Tiles dataset, Web server, and Users.
<br> <b>So, let’s get started and create each component together</b> <br>
<hr>
<h3>Step 1: Preparing 3D City Models</h3>
<p>In this step, we will download the 3D city models in CityGML format. Then, convert the models to 3D Tiles
format for optimizing the 3D web visualization. In this article, I picked the 3D city models from Den Haag
area as it is a compact model. Of course, you are free to explore this method with any CityGML datasets.</p>
<li> Download the CityGML dataset from <a
<li> Download the CityGML dataset from
<li style="list-style-type:none">
<ul>
<li>
Den Haag (NL) 3D building model Dataset: <a
href="https://denhaag.dataplatform.nl/#/data/36049d1a-4a0f-4c5d-8adb-21dbfb7252f9"
target="_blank">https://denhaag.dataplatform.nl/#/data/36049d1a-4a0f-4c5d-8adb-21dbfb7252f9</a> in the
download section.</li>
target="_blank">https://denhaag.dataplatform.nl/#/data/36049d1a-4a0f-4c5d-8adb-21dbfb7252f9</a>
</li>
<li>
Nordrhein-westfalen (Germany) 3D building model Dataset: <a
href="https://www.opengeodata.nrw.de/produkte/geobasis/3dg/lod2_gml/"
target="_blank">https://www.opengeodata.nrw.de/produkte/geobasis/3dg/lod2_gml/</a>
</li>
</ul>
</li>
</li>
<li> Using the FME Workbench to convert the CityGML models to 3D Tiles format. Starting by opening the FME
Workbench, Drag and drop all CityGML models to the FME window.<br>
<img src="img/1a.JPG" alt="" style="width: 800px;"><br>
......@@ -100,7 +122,7 @@
<hr>
<h3>Step 2: Preparing HTML for CesiumJS</h3>
In this step, we will create an HTML web document containing the 3D Web Globe using CesiumJS library. You can
use any code Idle or editor. In this example, I named it as denHaagApp.html. You can create the document with
use any code Idle or editor. You can create the document with
the name you like and copy the following code. Don't forget to specify the URL on line 24 to the target
Tileset.json. If you do this for the first time, you can come back after you set up the web server in step
three.
......@@ -110,11 +132,20 @@
<hr>
<h3>Step 3: Host the 3D Web App on the Web Server</h3>
This steps, we will host the Web App from step 2 and the 3D Tiles city models from step 1 on the web server. You
are freely to use any web server of your preferences. In this example, we use the XAMPP (or Apache) open source web server.
are freely to use any web server of your preferences.
<h5>3A: Python web server</h5>
<li>Install Python (3.xx)</li>
<li>open the CMD (Command Prompt) and check the python version <kbd>python --version</kbd>. If you get an error
message, please check your python installation.</li>
<li>Start the server by <kbd>python -m http.server 80</kbd> </li>
<h5>3B: XAMPP (Apache) web server.</h5>
(You can get it from <a
href="https://www.apachefriends.org/index.html">https://www.apachefriends.org/index.html</a>)
<li>Install XAMPP or Apache.</li>
<li>Open XAMPP Control Panel and start Apache HTTP web service. <br>Optionally, you can start the Apache manually via <code> [(part to Apache)]\apache\bin\httpd.exe </code>. Or, use Terminal to enter <code>sudo apachectl start</code> and <code>sudo apachectl stop</code> commands to start and stop Apache service.
<li>Open XAMPP Control Panel and start Apache HTTP web service. <br>Optionally, you can start the Apache
manually via <code> [(part to Apache)]\apache\bin\httpd.exe </code>. Or, use Terminal to enter <code>sudo
apachectl start</code> and <code>sudo apachectl stop</code> commands to start and stop Apache service.
<br>
<img src="img/4.JPG" alt="" style="width: 400px;"><br>
</li>
......@@ -130,19 +161,20 @@
<hr>
<h3>Step 4: Test the 3D Web App</h3>
Finally, you can access your 3D web app visualizing 3D city model on your web browser at
http://localhost/denHaagApp.html<br>
Finally, you can access your 3D web app visualizing 3D city model on your web browser.<br>
<img src="img/6.JPG" alt="" style="width: 800px;"><br>
<hr>
<h2>Overview of the software used</h2>
<ul>
<li><a href="https://cesiumjs.org/downloads/">CesiumJS</a></li>
<li>Web Server:&nbsp;<a href="https://httpd.apache.org/">Apache HTTP Server</a>&nbsp;, is also in&nbsp;<a
<li><a href="https://cesiumjs.org/downloads/">CesiumJS</a> (Register for the token)</li>
<li>Web Server: Python 3 HTTP server or
&nbsp;<a href="https://httpd.apache.org/">Apache HTTP Server</a>&nbsp;, is also in&nbsp;<a
href="https://www.apachefriends.org/de/index.html">XAMPP</a>&nbsp;included</li>
<li>Web browser:&nbsp;<a href="https://www.mozilla.org/de/firefox/new/">Firefox</a></li>
<li>FME Workbench 2020</li>
<li>Web browser:
Google Chrome or &nbsp;<a href="https://www.mozilla.org/de/firefox/new/">Firefox</a></li>
<li>FME Workbench 2021 <a href="https://www.safe.com/free-fme-licenses/students/">Student License</a> </li>
</ul>
<hr>
<h2>Other Example Use Cases</h2>
......@@ -164,10 +196,14 @@
</div>
</div> -->
<li><a href="https://transfer.hft-stuttgart.de/pages/urbanvis/index.html">Wind Simulation Platform</a> in the Cesium 3D Web Application</li>
<li><a href="https://steinbeis-3dps.eu/3DGeoVolumes/">3D Visualization Server</a> for hosting 3D building models created by the 3D GeoVolumes API (3D Container API)Specification</li>
<li><a href="https://steinbeis-3dps.eu/geoportal_3diot/#/">OGC 3D IoT Pilot - Sejong, South Korea</a> with air quality sensor data (SensorThings API)</li>
<li><a href="https://deutschland.virtualcitymap.de/#/">Deutschland in 3D</a> 3D Web Application Visualizing German Cities</li>
<li><a href="https://transfer.hft-stuttgart.de/pages/urbanvis/index.html">Wind Simulation Platform</a> in the
Cesium 3D Web Application</li>
<li><a href="https://steinbeis-3dps.eu/3DGeoVolumes/">3D Visualization Server</a> for hosting 3D building models
created by the 3D GeoVolumes API (3D Container API)Specification</li>
<li><a href="https://steinbeis-3dps.eu/geoportal_3diot/#/">OGC 3D IoT Pilot - Sejong, South Korea</a> with air
quality sensor data (SensorThings API)</li>
<li><a href="https://deutschland.virtualcitymap.de/#/">Deutschland in 3D</a> 3D Web Application Visualizing
German Cities</li>
<li>Explore other <a href="https://3d.bk.tudelft.nl/opendata/opencities/">CityGML Datasets</a></li>
<hr>
......@@ -185,11 +221,11 @@
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous">
</script>
<script src="source/bootstrap.min.js"></script>
</body>
......
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cesium.com/downloads/cesiumjs/releases/1.68/Build/Cesium/Cesium.js"></script>
<link href="https://cesium.com/downloads/cesiumjs/releases/1.68/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
<script src="https://cesium.com/downloads/cesiumjs/releases/1.80/Build/Cesium/Cesium.js"></script>
<link href="https://cesium.com/downloads/cesiumjs/releases/1.80/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
</head>
<body>
<div id="cesiumContainer" style="width: 100%; height:100%"></div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment