Exporting Layers By Group
Hello,
I am trying to export all the layers inside a workspace based on the group the layers are nested in.
The idea is for the script to create a folder with the name of the group that will contain all the layers in my workspace that belong to that group.
For instance, if my workspace has 3 groups, Group1, Group2, Group3, then the script would create 3 folders, Group1, Group2, Group3. Each folder would contain its respective layers.
This is what I have so far. Thanks in advance for your input.
GLOBAL_MAPPER_SCRIPT VERSION=1.00
SET_LAYER_OPTIONS FILENAME="*" HIDDEN=YES
LAYER_LOOP_START FILENAME="*.las"
SET_LAYER_OPTIONS FILENAME="%LAYER_DESC%" HIDDEN=NO
EXPORT_VECTOR FILENAME="%SCRIPT_FOLDER%\LAS\%LAYER_DESC%" TYPE=LIDAR_LAS
SET_LAYER_OPTIONS FILENAME="*" HIDDEN=YES
LAYER_LOOP_END
Tagged:
Categories
- 12.9K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 643 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 419 Projection Questions
- 829 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 180 Announcement and News
- 926 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 574 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website