You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repo contains a Dockerfile for the [3D City Database Web-Map-Client (3D web client)](https://github.com/3dcitydb/3dcitydb-web-map/) based on the official [Node.js Docker images](https://hub.docker.com/_/node/). To get the 3D web client Docker images visit the [tumgis/3dcitydb-web-map](https://hub.docker.com/r/tumgis/3dcitydb-web-map/) DockerHub page. To get things moving fast take a look the *Quick start* section.
4
6
5
7
#### Special features
8
+
6
9
**Landing page* and *data listing* for convenient 3D web client project creation
7
10
8
11
#### Image versions/tags
9
-
***latest** - Latest stable version based on latest version of the 3D web client. Built from [master](https://github.com/tum-gis/3dcitydb-web-map-docker/tree/master) branch.
12
+
13
+
A list of all available tag is available on DockerHub [tumgis/3dcitydb-web-map/tags](https://hub.docker.com/r/tumgis/3dcitydb-web-map/tags/).
14
+
The image tags are compose of several tokens, that are explained below:
15
+
16
+
***latest** - Latest stable version based on latest stable release of the 3D web client. Built from [master](https://github.com/tum-gis/3dcitydb-web-map-docker/tree/master) branch.
10
17
***devel** - Development version containing latest features. Built from [devel](https://github.com/3dcitydb/3dcitydb-web-map/tree/devel) branch.
11
-
***experimental** - Development version containing latest features. Built from the latest commit of the [3DCityDB Web-Map-Client Github master branch](https://github.com/3dcitydb/3dcitydb-web-map/tree/master).
12
-
***v1.1.0**, **v1.4.0**, **v1.6.0** - Same content as **latest** image, but built with a specific version (**vX.X.X**) of the 3DCityDB Web-Map-Client.
18
+
***alpine** - Lightweight image version based on [Alpine Linux](https://alpinelinux.org/). All other images use the Debian operating system.
19
+
***experimental** - This version is built from the latest commit of the [3DCityDB Web-Map-Client Github master branch](https://github.com/3dcitydb/3dcitydb-web-map/tree/master).
20
+
***v1.1.0**, **v1.4.0**, **v1.6.0** -Built with a specific version (**vX.X.X**) of the 3DCityDB Web-Map-Client.
13
21
14
-
Use `docker pull tumgis/3dcitydb-web-map:TAG` to download the latest version of the image with the specified `TAG` to your system. For example: `docker pull tumgis/3dcitydb-web-map:v1.4.0`.
22
+
Use `docker pull tumgis/3dcitydb-web-map:TAG` to download the latest version of the image with the specified `TAG` to your system. For example: `docker pull tumgis/3dcitydb-web-map:v1.6.0`.
15
23
16
24
#### More 3DCityDB Docker Images
25
+
17
26
Check out the Docker images for the *3D City Database* and the *3D City Database Web Feature Service (WFS)* too:
*[3DCityDB Web Feature Service (WFS) image](https://github.com/tum-gis/3dcitydb-wfs-docker/)
20
30
21
-
> **Note:** Everything in this repo is in development stage.
31
+
> **Note:** Everything in this repo is in development stage.
22
32
> If you experience any problems or have a suggestion/improvement please let me know by creating an issue [here](https://github.com/tum-gis/3dcitydb-web-map-docker/issues).
23
33
24
34
## What is the 3DCityDB-Web-Map-Client
35
+
25
36
The **3DCityDB-Web-Map-Client** is a web-based front-end of the 3DCityDB for high-performance 3D visualization and interactive exploration of **arbitrarily large semantic 3D city models in CityGML**. It utilizes the [Cesium Virtual Globe](http://cesiumjs.org/index.html) as its 3D geo-visualization engine based on HTML5 and Web Graphics Library (WebGL) to provide hardware acceleration and cross-platform functionalities like displaying 3D graphic contents on web browsers without the needs of additional plugins.
26
37
27
-
The key features and functionalities of the 3DCityDB-Web-Map-Client is summarized as follows:
38
+
The key features and functionalities of the 3DCityDB-Web-Map-Client is summarized as follows:
28
39
29
40
* Support for efficient displaying, caching, prefetching, dynamic loading and unloading of large pre-styled 3D visualization models in the form of tiled KML/glTF datasets exported from the 3DCityDB using the Importer/Exporter
30
41
* Intuitive user interface for adding and removing arbitrary number of data layers like 3D visualization model (KML/glTF), WMS imagery layer, and Cesium digital terrain model
31
42
* Support for linking the 3D visualization models (KML/glTF) with the cloud-based Google Fusion Table allowing for querying the thematic data of every 3D object
32
43
* Support for rich interaction with 3D visualization models (KML/glTF), for example, highlighting of 3D objects on mouseover and mouseclick as well as hiding and showing of the selected 3D objects
33
-
* Support for exploring a 3D object of interest from different view perspectives using third-party mapping services like Microsoft Bing Maps with oblique view, Google Streetview, and a combined version (DualMaps)
44
+
* Support for exploring a 3D object of interest from different view perspectives using third-party mapping services like Microsoft Bing Maps with oblique view, Google Streetview, and a combined version (DualMaps)
34
45
* Support for on-the-fly activating and deactivating shadow visualization of 3D objects (only for glTF, KML is currently not supported yet) and Cesium digital terrain models
35
-
* Support for collaborative creation and sharing of the workspace of the 3DCityDB-Web-Map-Client by means of generating a scene link including information about the current camera perspective, activation status of the shadow visualization, parameters of the current loaded data layers etc.
46
+
* Support for collaborative creation and sharing of the workspace of the 3DCityDB-Web-Map-Client by means of generating a scene link including information about the current camera perspective, activation status of the shadow visualization, parameters of the current loaded data layers etc.
> [3DCityDB Official Homepage](https://www.3dcitydb.net/)
@@ -41,22 +52,28 @@ The key features and functionalities of the 3DCityDB-Web-Map-Client is summarize
41
52
> [3DCityDB and CityGML Hands-on Tutorial](https://www.gis.bgu.tum.de/en/projects/3dcitydb/#c1425)
42
53
43
54
## Quick start
55
+
44
56
This section describes how to get a 3DCityDB-Web-Map-Client container running as quick and easy as possible.
57
+
45
58
1. Install Docker on your system.
46
59
This step is mandatory. Downloads and detailed instructions for various operating systems can be found here: [https://docs.docker.com/install/](https://docs.docker.com/install/)
47
60
2. Run the 3D web client Docker images using [`docker run`](https://docs.docker.com/engine/reference/commandline/run/). Use the `-p <host port:docker port>` switch to specify on which port the 3D web client will listen on your host system. For instance, use `-p 80:8000` if you want to access the 3D web client on the default *http port=80*.
48
-
```bash
49
-
docker run -dit --name 3dwebmap-container -p 80:8000 tumgis/3dcitydb-web-map
50
-
```
61
+
62
+
```bash
63
+
docker run -dit --name 3dwebmap-container -p 80:8000 tumgis/3dcitydb-web-map
64
+
```
65
+
51
66
3. As soon as the container has started, the 3D web client will be available on your Docker host with any common Web Browser. If you run the container locally with above port settings, the landing page is available here:
52
67
[http://localhost/](http://localhost/) or [http://127.0.0.1/](http://127.0.0.1/)
53
68
54
69
## Hosting data AND the 3D web client
70
+
55
71
The 3DCityDB-Web-Map-Client Docker image allows you to host the data you want to use in the client. All data, that is visible to the `/var/www/data/` directory of a running 3D web client container will be listed in the *data listing* and can be used in the client to create web visualizations. The best way to make data available to that directory is by using a so called [bind mount](https://docs.docker.com/storage/bind-mounts/) where a *host directory* is mapped to a *container directory*. Checkout this overview on Docker's [data storge and persistence](https://github.com/tum-gis/3dcitydb-docker-postgis#data-storage-and-persistence) for more insight on *bind mounts* and other possible options.
56
72
57
73
The following example will explain how to host the 3DCityDB-Web-Map-Client and an example data set.
58
74
We assume you have created some *glTF* data for testing using the [3DCityDB Importer/Exporter](https://www.3dcitydb.org/3dcitydb/d3dimpexp/). If this is not the case, a test dataset is available [here](https://github.com/3dcitydb/3dcitydb-web-map/tree/master/examples/glTFRailwaySceneLoD3Example/Railway_Scene_LoD3). For this example we assume the test dataset is stored at `/home/docker/data/` on your docker host:
59
-
```
75
+
76
+
```text
60
77
$ ls -lh /home/docker/data/
61
78
62
79
-rw-r--r-- 1 root root 9.1K Mar 15 18:36 Railway_Scene_LoD3.json
@@ -65,23 +82,26 @@ $ ls -lh /home/docker/data/
65
82
drwxr-xr-x 3 root root 4.0K Mar 15 18:36 Tiles
66
83
67
84
```
85
+
68
86
To start a 3DCityDB-Web-Map-Client Docker container and *bind mount* the `/home/docker/data/` host directory to the `/var/www/data/` container directory run:
69
87
70
88
```bash
71
89
docker run -dit --name 3dwebmap-container -p 80:8000 \
72
-
-v /home/docker/data/:/var/www/data/ \
90
+
-v /home/docker/data/:/var/www/data/ \
73
91
tumgis/3dcitydb-web-map
74
92
```
75
93
76
94
> **Note:**
77
-
> In the example above long commands are broken to several lines for readability using the Bash (` \ `) or CMD (`^`) line continuation.
95
+
> In the example above long commands are broken to several lines for readability using the Bash (`\`) or CMD (`^`) line continuation.
78
96
79
97
The data is now available in the data listing (e.g. `http://myDockerHost/data/`). Use your Browser's *Copy Link Address* feature to copy the URLs required in the 3D web client.
To build a 3DCityDB-Web-Map-Client Docker image from the Dockerfile in this repo you need to download the source code from this repo and run the [`docker build`](https://docs.docker.com/engine/reference/commandline/build/) command. Follow the step below to build a 3DCityDB-Web-Map-Client Docker image or use the [`build.sh`](https://github.com/tum-gis/3dcitydb-web-map-docker/blob/master/build.sh) script.
If the build succeeds, you are ready to run the image as described above. To list all locally available images run [`docker images`](https://docs.docker.com/engine/reference/commandline/images/).
114
+
If the build succeeds, you are ready to run the image as described above. To list all locally available images run [`docker images`](https://docs.docker.com/engine/reference/commandline/images/).
95
115
96
116
### Build parameters
117
+
97
118
To build a Docker image with a custom *Tomcat base image*, a specific *3DCityDB WFS version*, or a custom *web app context path*, the [`docker build --build-arg`](https://docs.docker.com/engine/reference/commandline/build/) parameter is used.
98
119
99
120
| Parameter name | Description | Default value |
@@ -103,12 +124,12 @@ To build a Docker image with a custom *Tomcat base image*, a specific *3DCityDB
103
124
104
125
>**Note:**
105
126
> The build process has been tested with the `node:10` base image and `v1.6.0` of the 3DCityDB-Web-Map-Client so far.
0 commit comments