7.2. Installation¶
The 3D City Database WFS is shipped as a Java WAR (web archive) file. Please download the WFS distribution package from the GitHub release section or from the 3DCityDB website at https://www.3dcitydb.org. Besides the WAR file, the distribution package also contains Java libraries that render mandatory dependencies for the WFS service and that must be installed as shared libraries in your servlet container.
Note
Alternatively, you may build your own WAR file from the source code provided on GitHub. This requires that you are experienced in building Java web applications from source using Gradle. No further documentation is provided here.
Please follow the following installation steps:
lib
folder. The list of libraries will look like this:
ojdbc8-19.3.0.0.jar
(Oracle JDBC driver)postgresql-42.2.14.jar
(PostgreSQL JDBC driver)postgis-jdbc-2.5.0.jar
(PostGIS JDBC extension)postgis-geometry-2.5.0.jar
(PostGIS geometry extension)
The libraries must be installed as shared libs or common libs
(terminology may differ) in your servlet container. For Apache Tomcat 7
(or higher), this simply means placing the JAR files into the lib
folder
of the Tomcat installation directory. Afterwards, you need to restart
Tomcat. Please refer to the documentation of your servlet container for
more information.
Note
You may, for instance, use the Java command-line option -Xms
for this purpose.
webapps
folder, which, by
default, is in the installation directory of the Apache Tomcat server.
This will automatically deploy the application. Alternatively, use the
web-based Tomcat manager application to deploy WAR files on the
server. The manager application is included in a default installation.
For more information on deploying WAR files on Tomcat or different
servlet containers, please refer to the corresponding documentation
material.Note
If you use the automatic deployment feature of Tomcat as
described above, the name of the WAR file will be used as context path
in the URL for accessing the application. For example, if the WFS WAR
file is named citydb-wfs.war
, then the context path of the WFS service
will be http://[host][:port]/citydb-wfs/
. To pick a different context
path, simply rename the WAR file or change Tomcat’s default behavior.
config.xml
of the service. Please check Section 7.3
for how to configure the WFS.Note
Changes to the config.xml
file typically require a reload or
restart of the WFS web application (a restart of the servlet container
itself is, of course, not required). Please check to documentation of
your favorite servlet container for how to do so. In case of Apache
Tomcat, you can simply use the manager application to reload web
applications.
WEB-INF/ade-extensions
directory of your
deployed WFS application. The WEB-INF
directory is typically located
in the application folder, which is generally named after the WAR
file and itself is a subfolder of the webapps folder in the Tomcat
installation directory (see Fig. 7.1).Note
The CityGML ADE must also be registered in the 3DCityDB instance to which your WFS service shall connect.