> For the complete documentation index, see [llms.txt](https://docs.lumidb.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lumidb.com/api-reference/tiles.md).

# Tiles

3D Tiles 1.1 streaming. See `/tables/3d_tileset` for non-compliance notes.

## GET /tables/3d\_tile

> Returns the content of a single tile referenced by a \`tileset.json\`. Default encoding is 3D Tiles \`.pnts\` (with \`RTC\_CENTER\` set to the first point's \`output\_proj\` coordinates). When \`format=gltf\` the response is a binary glTF 2.0 buffer. When \`format=threejs\` the response is LumiDB's internal binary point format (positions as f32 offsets from a precomputed midpoint, plus RGB).\
> \
> When \`output\_proj\` is omitted this endpoint defaults to EPSG:4978 (geocentric/ECEF), while \`/tables/3d\_tileset\` defaults to EPSG:4979, since a \`region\` bounding volume is geographic. Both declare a vertical axis, so a compound table's heights reach the ellipsoid either way.

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"tiles","description":"3D Tiles 1.1 streaming. See `/tables/3d_tileset` for non-compliance notes."}],"security":[{"ApiKey":[]},{"Bearer":[]},{"Basic":[]},{"Clerk":[]},{"Link":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"Long-lived API key configured in the server's auth file. The full header value is `ApiKey <key>` (note the literal `ApiKey ` prefix, which is not standard HTTP — generated SDKs will need to prepend it)."},"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Scoped LumiDB JWT issued by `POST /create_token`. Send as `Authorization: Bearer <jwt>`."},"Basic":{"type":"http","scheme":"basic","description":"HTTP Basic where the password is an API key (username is ignored). Send as `Authorization: Basic base64(\"user:<api_key>\")`."},"Clerk":{"type":"apiKey","in":"header","name":"Authorization","description":"Clerk-issued session JWT (used by the web UI). The full header value is `Clerk <jwt>`."},"Link":{"type":"apiKey","in":"header","name":"Authorization","description":"Short-lived link token granting access to a shared project. The full header value is `Link <token>`."}}},"paths":{"/tables/3d_tile":{"get":{"tags":["tiles"],"description":"Returns the content of a single tile referenced by a `tileset.json`. Default encoding is 3D Tiles `.pnts` (with `RTC_CENTER` set to the first point's `output_proj` coordinates). When `format=gltf` the response is a binary glTF 2.0 buffer. When `format=threejs` the response is LumiDB's internal binary point format (positions as f32 offsets from a precomputed midpoint, plus RGB).\n\nWhen `output_proj` is omitted this endpoint defaults to EPSG:4978 (geocentric/ECEF), while `/tables/3d_tileset` defaults to EPSG:4979, since a `region` bounding volume is geographic. Both declare a vertical axis, so a compound table's heights reach the ellipsoid either way.","operationId":"handle_tile","parameters":[{"name":"p","in":"query","description":"Base64(UTF-8(JSON)) of [`QueryCesiumParams`]. Same payload as\n`/tables/3d_tileset` — clients should reuse the value from the\ntileset URL verbatim.","required":true,"schema":{"type":"string"}},{"name":"cp","in":"query","description":"Octree chunk position (`cp`). Identifies the on-disk point file.","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"o","in":"query","description":"Byte offset (`o`) into the chunk's point file.","required":true,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"b","in":"query","description":"Number of bytes (`b`) to read from `o`.","required":true,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"format","in":"query","description":"Output encoding. Omit for the default Cesium `.pnts` format. Other\nvalues: `gltf` (binary glTF 2.0), `threejs` (LumiDB binary point format).","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"Tile bytes","content":{"application/octet-stream":{}}},"400":{"description":"Invalid `p` (bad base64 or invalid `QueryCesiumParams` JSON)"},"401":{"description":"Missing or invalid `Authorization` header"},"404":{"description":"Table or chunk not found"}}}}}}
```

## GET /tables/3d\_tileset

> Returns a \[3D Tiles 1.1]\(<https://docs.ogc.org/cs/22-025r4/22-025r4.html>) \`tileset.json\` for the requested table.\
> \
> \*\*Non-compliance warning.\*\* Bounding volumes are emitted as \`region\` filled with \`output\_proj\` coordinates (e.g. metres for EPSG:3857), not WGS84 radians as the 3D Tiles spec requires. CesiumJS tolerates this; strict consumers (NASA-AMMOS \`3d-tiles-renderer\`, etc.) must either set \`output\_proj\` to a longlat CRS \*and\* convert degrees to radians, or rewrite each \`region\` to a \`box\` client-side.\
> \
> When \`output\_proj\` is omitted this endpoint defaults to EPSG:4979 (WGS84 longlat with an ellipsoidal height), so \`region\` heights mean what the spec says. \`/tables/3d\_tile\` defaults to EPSG:4978 (ECEF) instead, since tile content is Cartesian. Keep the two consistent if you pass either explicitly.

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"tiles","description":"3D Tiles 1.1 streaming. See `/tables/3d_tileset` for non-compliance notes."}],"security":[{"ApiKey":[]},{"Bearer":[]},{"Basic":[]},{"Clerk":[]},{"Link":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"Long-lived API key configured in the server's auth file. The full header value is `ApiKey <key>` (note the literal `ApiKey ` prefix, which is not standard HTTP — generated SDKs will need to prepend it)."},"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Scoped LumiDB JWT issued by `POST /create_token`. Send as `Authorization: Bearer <jwt>`."},"Basic":{"type":"http","scheme":"basic","description":"HTTP Basic where the password is an API key (username is ignored). Send as `Authorization: Basic base64(\"user:<api_key>\")`."},"Clerk":{"type":"apiKey","in":"header","name":"Authorization","description":"Clerk-issued session JWT (used by the web UI). The full header value is `Clerk <jwt>`."},"Link":{"type":"apiKey","in":"header","name":"Authorization","description":"Short-lived link token granting access to a shared project. The full header value is `Link <token>`."}}},"paths":{"/tables/3d_tileset":{"get":{"tags":["tiles"],"description":"Returns a [3D Tiles 1.1](https://docs.ogc.org/cs/22-025r4/22-025r4.html) `tileset.json` for the requested table.\n\n**Non-compliance warning.** Bounding volumes are emitted as `region` filled with `output_proj` coordinates (e.g. metres for EPSG:3857), not WGS84 radians as the 3D Tiles spec requires. CesiumJS tolerates this; strict consumers (NASA-AMMOS `3d-tiles-renderer`, etc.) must either set `output_proj` to a longlat CRS *and* convert degrees to radians, or rewrite each `region` to a `box` client-side.\n\nWhen `output_proj` is omitted this endpoint defaults to EPSG:4979 (WGS84 longlat with an ellipsoidal height), so `region` heights mean what the spec says. `/tables/3d_tile` defaults to EPSG:4978 (ECEF) instead, since tile content is Cartesian. Keep the two consistent if you pass either explicitly.","operationId":"handle_tileset","parameters":[{"name":"p","in":"query","description":"Base64(UTF-8(JSON)) of [`QueryCesiumParams`]. Standard base64 alphabet;\npadding may be omitted. See [`QueryCesiumParams`] for the JSON schema.","required":true,"schema":{"type":"string"}},{"name":"node_path","in":"query","description":"Internal use: when set, the tileset returned is rooted at a specific\noctree node rather than the whole table. Not part of the standard\nclient flow.","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"3D Tiles 1.1 tileset.json","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid `p` (bad base64 or invalid `QueryCesiumParams` JSON)"},"401":{"description":"Missing or invalid `Authorization` header"},"404":{"description":"Table not found"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lumidb.com/api-reference/tiles.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
