|
LuciadCPillar C# 2026.1.02
|
This class can be used to create an ITileSet3DModel implementation that can read OGC 3D Tiles data.
More...
Classes | |
| class | Options |
Options for decoding OGC 3D Tiles data. More... | |
Static Public Member Functions | |
| static Luciad.Models.TileSet3D.ITileSet3DModel | Decode (string source) |
An OGC 3D Tiles model connects to a 3D tile service to retrieve tiles for a TileSet3DLayer. | |
| static Luciad.Models.TileSet3D.ITileSet3DModel | Decode (string source, Luciad.Formats.Ogc3DTiles.Ogc3DTilesModelDecoder.Options options) |
An OGC 3D Tiles model connects to a 3D tile service to retrieve tiles for a TileSet3DLayer. | |
This class can be used to create an ITileSet3DModel implementation that can read OGC 3D Tiles data.
See Ogc3DTilesModelDecoder.Decode for more details.
|
inlinestatic |
An OGC 3D Tiles model connects to a 3D tile service to retrieve tiles for a TileSet3DLayer.
| source | the OGC 3D tiles endpoint url or the path to the entry point file |
| System.IO.IOException | when decoding the OGC 3D Tiles data fails. |
|
inlinestatic |
An OGC 3D Tiles model connects to a 3D tile service to retrieve tiles for a TileSet3DLayer.
| File | Entry point | Description |
|---|---|---|
| tileset.json/root.json | x | File containing the root tile metadata as well as links to the sub-tiles/content. |
| *.json | Files containing sub-tile metadata as well as links to its sub-tiles/content. | |
| *.b3dm | File containing Batched 3D Model data. See the B3DM documentation for more information about this file. | |
| *.pnts | File containing batched Point Cloud data. See the PNTS documentation for more information about this file. |
The decoder assumes a Geocentric or Cartesian reference system.
The current OGC 3D Tiles model supports the OGC 3D Tiles 1.0 specification. The OGC 3D Tiles 1.1 specification is partially supported. It explicitly supports:
MeshStyle.ShadingModel. StyleExpressionFactory. Feature ID by Texture' is not supported. Feature IDs' are not supported. Since OGC 3DTiles relies on a tree structure to determine which tile to load. This means the way this tree is built can impact performance. An ideal tree has enough level of details to avoid loading highly details at an early stage while loading those when fully zoomed-in.
OGC 3D tiles point clouds data can be styled using style expressions that make use of attributes. An attribute represents additional metadata for each of the points in the point cloud. Typical attributes are intensity, color, height, etc...
When attributes are available, they can be discovered by manually inspecting the top-level tileset.json or root.json file. That file can contain a section called "properties". It's a list of attribute names, with (optionally) range indications.
This is an example of the attributes that you can find in this file:
"properties" : {
"Intensity" : {
"minimum" : 0.0,
"maximum" : 65535.0
},
"Classification" : {
"minimum" : 2.0,
"maximum" : 4.0
},
"ReturnNumber" : {
"minimum" : 1.0,
"maximum" : 7.0
},
"Height" : {
"minimum" : 29.02975082397461,
"maximum" : 116.85025024414062
}
}
Additional properties can be discovered by manually inspecting the data itself. More concretely, b3dm files contain a header section that describe these properties. This is an example of the attributes that you can find in a b3dm file:
{
"fid": {
"componentType": "INT",
"type": "SCALAR",
"byteOffset": 0
},
"height" : {
"componentType" : "FLOAT",
"type" : "SCALAR",
"byteOffset" : 24
}
}
This article provides more information and example code.
| source | the OGC 3D tiles endpoint url or the path to the entry point file |
| options | options for decoding OGC 3D Tiles data, for example an optional custom loader implementation to fetch the OGC 3D Tiles resources. |
| System.IO.IOException | when decoding the OGC 3D Tiles data fails. |