I'm trying to get some LiDAR data to export to layer bounds

Hello,
So I'm trying to export multiple lines of LiDAR data (LAS format) to the extents of a KMZ  file that I have but I'm not sure why the LAYER_BOUNDS comand isn't working. Everything works in the code previous to this snip and it exports to the correct location as one LAS file but it's not clipping. 

Thanks in advance!

DEFINE_VAR NAME="CLASS_LAS_DIR" VALUE="%OUTDIR%"
DEFINE_VAR NAME="OUTDIR_CLIPPED" VALUE="%LASDIR%CLIPPED"

DEFINE_VAR NAME="CLIP_EXTENT" VALUE=D:\0_Coding\Grid_Testing\BOUNDARY_KMZ\testKMLFILE.kmz
IMPORT FILENAME=D:\0_Coding\Grid_Testing\BOUNDARY_KMZ\testKMLFILE.kmz TYPE=KMZ

DIR_LOOP_START DIRECTORY="%CLASS_LAS_DIR%" FILENAME_MASKS="*.LAS" RECURSE_DIR=NO

IMPORT FILENAME="%FNAME_W_DIR%"
LOG_MESSAGE Loaded %FNAME_W_DIR%: %DATE% %TIME%

DIR_LOOP_END

LOG_MESSAGE Loaded Classified LAS Files": %DATE% %TIME%
LOG_MESSAGE

EXPORT_VECTOR TYPE="LIDAR_LAS" LAYER_BOUNDS="D:\0_Coding\Grid_Testing\BOUNDARY_KMZ\testKMLFILE.kmz" LIDAR_FILTER="NONE,2" FILENAME="%OUTDIR_CLIPPED%\CLASSIFIED_CLIPPED.las"

Answers

  • bmg_bobbmg_bob Global Mapper Programmer Posts: 1,754
    Hello,

    What version of Global Mapper are you using?

    Your EXPORT_VECTOR command is split across multiple lines, but you don't have the line continuation sequence at the end of the first two lines.  I assume that this is just for the sake of making your post easier to read.

    The LAYER_BOUNDS parameter will use the bounding rectangle of the layer, not the actual area feature(s) in the layer as the export bounds.  If you are trying to clip your data to an area feature, you need to use the POLYGON_CROP_FILE parameter instead.

    Cheers,
    Bob
Sign In or Register to comment.