.clt tile packages produced by CesiumLab. The .clt format is a SQLite database where each tile is stored as a binary blob keyed by its path. WebPublish opens the database and exposes a tile endpoint that CesiumLab and compatible clients can consume directly.
How it works
When a request arrives athttp://127.0.0.1:9090/{taskId}/{tilepath}, WebPublish looks up the value of {tilepath} in the SQLite tiles table and returns the stored tile data. The query used is:
json are returned with a application/json content type. All other tiles are returned as application/octet-stream. Tiles stored with gzip encoding are forwarded with a Content-Encoding: gzip header.
If no tile is found for the requested path, WebPublish returns a 404 response.
Endpoint
{tilepath} corresponds to the path column in the tiles table of the .clt file.
Example:
tileset.json:
Creating a CLT task
Choose the .clt file
Click Browse next to the Path field and select the
.clt file on your machine.The
.clt file must be a valid SQLite database with a tiles table containing path, tile, and type columns. Files exported directly from CesiumLab meet this requirement.Set the task ID and name
Enter a short ID (for example,
terrain). The tileset will be accessible at:Loading the tileset in CesiumLab
To view the published tileset in a CesiumLab viewer, use the local WebPublish URL as the tileset source. In a CesiumJS application, add the tileset using the URL of thetileset.json endpoint:
{taskId} with the ID you assigned when creating the task.
Gzip compression
Tiles in.clt packages are typically stored in gzip-compressed form. WebPublish passes gzip-compressed tiles through to the client with a Content-Encoding: gzip header, provided the client’s Accept-Encoding header includes gzip. Clients that do not advertise gzip support receive decompressed tile data.
Notes
- The task is automatically disabled if the
.cltfile cannot be opened. Update the Path in the task settings and re-enable the task if you move or replace the file. - The CLT task does not currently support an interactive map preview. Use CesiumLab or a CesiumJS application to visualize the data.
- Each incoming tile request increments the task’s Data used counter by one request. Use the Data limit field to cap the total number of requests served.