Node 3D Portrayal Service

This is a 3D Portrayal Service implementation that is compatible with 3D Tiles and i3s specifications (returns metadata in the response).

Installing

The service is implemented using Node js. Install the dependencies with the npm install command. For the moment there is no bundler. Place the contents of the repository on your server with Node.js installed and run the "start" script with npm.

npm run start

If your server has a process manager installed, then configure accordingly.

Usage

You can change the port in congig.js, default port is 9000. You access the service with the /service/v1 endpoint and then provide additional query parameters:

  • getCapabilities: {host}:{port}/service/v1?
  • getCapabilities query parameters:

service=3DPS

&acceptversions=1.0

&request=getCapabilities

The getCapabilities request generates dynamically a response based on the assets/assets.json file.

  • getScene: {host}:{port}/service/v1?
  • getScene query parameters:

service=3DPS

&acceptversions=1.0

&request=getScene

&layers=layer_1,layer_2

&boundingbox=lon_1,lat_1,lon_2,lat_2

When the query parameters are not valid an xml exception is returned.

Examples