LAS LiDAR Binary File Import Automation Options

When the program is driven from an automation script, an options string can be specified in the script that acts as the import options dialogs do in the program. The string consists of comma-separated parameters, which specify the behavior of the various import options.

 

Option

Action

Default

Description

Filter

string

 

LIDARP; LIDARW

RejectInconsistent

0 = No

1 = Yes

0

1 to reject inconsistent records, 0 to keep inconsistent records.

AcceptXMin

Value

 

Minimum X value, greater than or equal to

AcceptXMax

Value

 

Maximum X value, less than or equal to

AcceptYMin

Value

 

Minimum Y value, greater than or equal to

AcceptYMax

Value

 

Maximum Y value, less than or equal to

AcceptZMin

Value

 

Minimum Z value, greater than or equal to

AcceptZMax

Value

 

Maximum Z value, less than or equal to

AcceptNthPoint

Value

 

Filters out every Nth point.

AcceptReturn

Value

 

Filters by laser return value

AcceptClass

0 = No

1 = Yes

 

0 rejects the specified class, and 1 accepts the specified class. Takes the form "AcceptClass[x]=" where x is class number (0-31)

AcceptAllClasses

0 = No

1 = Yes

 

 

1 to accept ALL classes. Overrides AcceptClass specification.

AcceptNoClasses

0 = No

1 = Yes

 

1 to accept NO classes. Overrides AcceptClass specification.

 

 

 

Example

This example shows how to import a LiDAR LAS file with various options.

 

CommandApi.Construct("Import")

CommandApi.Option("GuiEnabled", "False")

CommandApi.Option("AutoConnect", "True")

CommandApi.Option("ClearOptions", "False")

CommandApi.Option("Path", "C:/Path/To/Import/file.las")

CommandApi.Option("Filter", "lidarp")

CommandApi.Option ("Options", "RejectInconsistent=1; AcceptNthPoint=2; AcceptClass[3]=0")

CommandApi.Option("PersistOptions", "True")

CommandApi.Do()

 

See Also

LAS LiDAR Binary File Description

LiDAR Import Filtering Dialog