public final class HspcModelDecoder extends Object
ITileSet3DModel
implementation that can read Hexagon Smart Point Cloud (HSPC) data.
See HspcModelDecoder#decode
for more details.
Modifier and Type | Class and Description |
---|---|
static class |
HspcModelDecoder.Options
Options for decoding HSPC data. |
Modifier and Type | Method and Description |
---|---|
static ITileSet3DModel |
decode(String source)
A 3D Tile set model that connects to a HSPC dataset to retrieve tiles for a
TileSet3DLayer . |
static ITileSet3DModel |
decode(String source,
HspcModelDecoder.Options options)
A 3D Tile set model that connects to a HSPC dataset to retrieve tiles for a
TileSet3DLayer . |
@NotNull public static ITileSet3DModel decode(@NotNull String source) throws IOException
TileSet3DLayer
.source
- the HSPC endpoint url or the path to the entry point fileIOException
- when decoding the HSPC data fails.decode(const std#string&, const Options&)
@NotNull public static ITileSet3DModel decode(@NotNull String source, @NotNull HspcModelDecoder.Options options) throws IOException
TileSet3DLayer
.
File | Entry point | Description |
---|---|---|
tree.hspc | x | File containing the root tile metadata as well as links to the sub-tiles/content. |
*.json | File containing metadata. | |
*.apr | File containing Point Cloud data. |
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 hspcInfo.json
file that is located next to the tree.hspc
file. That file can contain a section called "attributes". It's a list of attributes that contain:
This is an example of the attributes that you can find in this file:
"attributes" : [ { "name": "colorRGB", "role": "color" }, { "name": "I", "type": float32, "role": "intensity" }, { "name": "C", "type": uint8, "role": "classification" } ]
source
- the HSPC endpoint url or the path to the entry point fileoptions
- options for decoding OGC 3D Tiles data, for example an optional custom loader implementation to fetch the OGC 3D Tiles resources.IOException
- when decoding the HSPC data fails.