Data Loading and Removal API
Module: mls.io. This page documents 2 public functions with exact tool IDs, complete parameters, Parameters fields, and examples.
Back to the Script Tool API Reference
Functions
load_point_cloud— Load point cloud files (LiData, LAS/LAZ, PCD, PLY, E57, XYZ, PTS) from specified path(s). Supports single file, multiple files (array), or directoryload_raster— Load raster files (TIFF, GeoTIFF, IMG, PNG, JPG, etc.) from specified path
load_point_cloud
Load point cloud files (LiData, LAS/LAZ, PCD, PLY, E57, XYZ, PTS) from specified path(s). Supports single file, multiple files (array), or directory
- Exact tool ID:
io_load_point_cloud - Recommended call:
mls.io.load_point_cloud(...) - Required parameters: None
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
path |
string |
No | — |
Single file or directory path. For 2+ separate files, MUST use paths instead |
paths |
array |
No | — |
REQUIRED when user provides 2+ separate files. Put ALL file paths here |
type |
string |
No | 'lidata' |
File type (auto-detect if not specified) |
Example
from gvscript import mls
result = mls.io.load_point_cloud(
path='D:/data/input.LiData',
paths=['D:/data/input.LiData'],
type='lidata',
)
print(result.ok, result.output, result.message)
load_raster
Load raster files (TIFF, GeoTIFF, IMG, PNG, JPG, etc.) from specified path
- Exact tool ID:
io_load_raster - Recommended call:
mls.io.load_raster(...) - Required parameters:
path
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
path |
string |
Yes | — |
Path to the raster file |
Example
from gvscript import mls
result = mls.io.load_raster(
path='D:/data/input.LiData',
)
print(result.ok, result.output, result.message)