Map Elements API
Module: mls.map_element. This page documents 1 public functions with exact tool IDs, complete parameters, Parameters fields, and examples.
Back to the Script Tool API Reference
Functions
road_vector— Automatically extract road vectors based on built-in deep learning models.
road_vector
Automatically extract road vectors based on built-in deep learning models.
- Exact tool ID:
MapElement_Road_Vector - Recommended call:
mls.map_element.road_vector(...) - Alias:
Road_Vector - Required parameters:
input_paths
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input_paths |
array |
Yes | — |
REQUIRED when user provides 2+ files. Put ALL file paths here. output_path will be used as output directory |
GPU |
boolean |
No | True |
Whether to use GPU |
GPUID |
integer |
No | 0 |
GPU ID |
type |
integer |
No | 1 |
Run mode |
currentTable |
string |
No | — |
The name of the model |
Example
from gvscript import mls
result = mls.map_element.road_vector(
input_paths=['D:/data/input.LiData'],
GPU=True,
GPUID=0,
type=1,
currentTable='example',
)
print(result.ok, result.output, result.message)