User Created Features Layer - How to delete?
I can do most things with scripting but cannot delete the User Created Features layer. (Preferably without any prompts or warnings about saving.)
An example please someone?
An example please someone?
Tagged:
Answers
-
You may have to select all items in the UCF, then specify a different layer to move them to. The "other" layer may be a new one for which you may specify a name. The empty UCF may disappear. THEN you should be able to delete the "other" layer. This is simply an alternative procedure. How it works with scripting is another question, compared to doing the task at the user window..
-
Thanks Mykle but that sounds rather complicated and convoluted. It must be possible to do it directly, surely?
In the scripting reference for the UNLOAD_LAYER command (and in several other places) there is the following :-
"you can also pass in the value 'USER CREATED FEATURES' to have the 'User Created Features' layer updated or 'SELECTED LAYERS' to have any layers selected in the Control Center unloaded."
but I can't make it work and and I can't find an example where it has been used. I don't even know what it means by "pass in the value".
PLEASE help Global Mapper gurus!
-
Hello,
Try:
UNLOAD_LAYER FILENAME="USER CREATED FEATURES""Pass in the value" means to use the specified string in the parameter being described, as shown above.
Cheers,
Bob
-
Hi Bob,
That is the very first thing I tried but it doesn't do it. Not in v17 or v18 anyway.
-
I notice that when one tries to move the UCF layer in the GUI it is necessary to declare it as a "normal" layer first. I wonder if that is something to do with it.
-
Now fixed in the latest build.
Categories
- 13K All Categories
- 5.8K Features Discussion
- 350 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 181 Announcement and News
- 939 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 579 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 110 Global Mapper Forum Website



