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.inputUrl
the url to read the tileset from. Requiredoptions.outputPath
the output pathoptions.tilesetName
the output name of the tilesetoptions.egmFilePath
location of *.pgm file to convert heights from ellipsoidal to gravity-related formatoptions.maxDepth
The max tree depth of conversion