bmg_bob · Global Mapper Programmer
- Last Active
- No Roles
- Invited by
huzar said:Ok, this works Do you think that this operation can be done in script so I can do it on several files at once? Is option "Select all features in layer" available in scripting?
You can use a script, but you will have to use the export method, which would look something like this:
IMPORT FILENAME="your LAS file"Note that the IMPORT and EXPORT commands will require more parameters than are listed here. This is just an example. The LiDAR point selection functions available in the UI are not part of the scripting functions.
EXPORT_VECTOR FILENAME="LAS file in range" LIDAR_HEIGHT_RANGE="2, <your file's max height>"
UNLOAD_LAYER FILENAME="your LAS file"
IMPORT FILENAME="LAS file in range"
// Your other export goes here
Do you have the LiDAR Module? If so, you should be able to filter points by height above ground. Use the Digitizer to select the points in your LiDAR layer, then right-click and choose Advance Selection Options | Filter Selected LiDAR Points by Elevation/Color/Class, etc. The resulting window will provide options for unselecting points that are within your range above ground. You can then delete the remaining selected points.
This same function can be used during a LAS file export, so you could export your LiDAR data, and use the filtering options to remove points that are outside your desired range above ground. This will result in a new LAS file that contains the data you want. You can load this file and export the data.