Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.92 KB

serve.md

File metadata and controls

45 lines (35 loc) · 1.92 KB

ept serve

Create an HTTP server that creates on-demand 3D Tiles from EPT datasets. The only restriction for EPT data is that the spatial reference must contain an EPSG code.

ept serve --help

Serve 3D Tiles on the fly from EPT resources

Options:
      --roots     Allowed endpoint roots - "*" for anything
                                                        [array] [default: ["*"]]
  -p, --port      Server port                           [number] [default: 3000]
      --origins   Access-Control-Allow-Origin list      [array] [default: ["*"]]
      --keyfile   SSL key file                                          [string]
      --certfile  SSL cert file                                         [string]
      --cafile    SSL CA file                                           [string]

Usage

ept serve

By default, this application allows any accessible EPT data to be proxied to 3D Tiles. The selection of a dataset is controlled via the ept query parameter. For example, after running ept serve, we should be able to access this public dataset in 3D Tiles format here.

We can also place restrictions on which locations may be proxied using the --roots option. By default, this is set to *, meaning to allow all endpoints, but with an invocation like ept serve --roots http://na.entwine.io we can restrict the proxy to serve only this one endpoint. Multiple roots may be passed to allow more than one specific endpoint.

Some aspects of the resulting tileset may be controlled by query parameters, for example the selection of additional dimensions beyond XYZ/RGB. See the tiling options.

Other query parameters, aside from ept and any tiling options specifications, will be forwarded to the target EPT root.