Skip to content

Latest commit

 

History

History

3dcitydb+wfs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

3DCityDB + WFS

This folder contains an example docker-compose.yml file for running a 3DCityDB instance with a Web-Feature-Service (WFS). Select the compose file depending on your 3DCityDB and 3DcityDB major version from folder v3.x.x or v 4.x.x. The services are configured to link the WFS container to the 3DCityDB and use the database as data source.

Pull the 3DCityDB images

This ensures you are running the latest version of each image.

docker pull tumgis/3dcitydb-postgis
docker pull tumgis/3dcitydb-wfs

Download the service configuration file

Download the docker-compose.yml from this repo using...

  • git:

    git clone https://github.com/tum-gis/3dcitydb-docker-compose
    cd 3dcitydb-docker-compose/3dcitydb+wfs/v4.x.x
  • ...or wget:

    wget https://github.com/tum-gis/3dcitydb-docker-compose/blob/master/3dcitydb%2Bwfs/v4.x.x/docker-compose.yml
  • ...or curl:

    curl https://raw.githubusercontent.com/tum-gis/3dcitydb-docker-compose/master/3dcitydb%2Bwfs/v4.x.x/docker-compose.yml -o docker-compose.yml

Adapt the service configuration file

Edit the docker-compose.yml file according to your needs using the text editor of your choice. You will likely want to:

  • Set 3DCityDB coordinate reference system (CRS) and it's GML CRS name: SRID, SRSNAME
  • Change the default database user and password: POSTGRES_USER, POSTGRES_PASSWORD

    Note: Make sure to change database connections details for the DB and the WFS accordingly!

Run the 3DCityDB services

Use docker-compose up to run the services.

docker-compose up

The services should now start. Depending on your machine, this is going to take 30-60s. When all services have started successfully they are reachable here, according to the example file.