Tiles3DConverter class
The Tiles3DConverter class converts an I3S layer. It converts between the OGC I3S formats and the 3D Tiles.
Usage
import {Tiles3DConverter} from '@loaders.gl/tile-converter';
const TILESET_URL =
'https://tiles.arcgis.com/tiles/u0sSNqDXr7puKJrF/arcgis/rest/services/Frankfurt2017_v17/SceneServer/layers/0';
const converter = new Tiles3DConverter();
await converter.convert({
inputUrl: TILESET_URL,
outputPath: 'data',
tilesetName: 'Frankfurt',
maxDepth: 2
});
The converted tiles are written to the specified output path.
Methods
constructor()
Constructs a new Tiles3DConverter instance.
convert(options: object): object
Converts a tileset to 3DTiles format
options.inputUrlthe url to read the tileset from. Requiredoptions.outputPaththe output pathoptions.tilesetNamethe output name of the tilesetoptions.egmFilePathlocation of *.pgm file to convert heights from ellipsoidal to gravity-related formatoptions.maxDepthThe max tree depth of conversion