Is it possible to load defined shapes as layers?

kbellis
Global Mapper UserTrusted User
1) I'm uncertain if defining a shape through a call of attributes is legal;
2) regardless, is it possible to load defined shapes as layers?
Going about this following my nose, I got this:

Best Answers
-
bmg_bob said:Your method of entering the coordinates for DEFINE_SHAPE will not work because the command can not accept variable names for coordinate values (bug #24919 has been opened to address this).
Cheers,
Bob
Answers
-
Or is another approach to be considered?
-
Hello,
Your method of entering the coordinates for DEFINE_SHAPE will not work because the command can not accept variable names for coordinate values (bug #24919 has been opened to address this).
These defined shapes can not be loaded as layers, however, and the Global Mapper scripting language does not have a command for creating a layer and features from coordinate input.
Cheers,
Bob -
Thank you for your reply, Bob.What is that command you referred to?I also had started to wonder if defining a text file from variables, exporting it, and then importing it was an approach to consider; however, am unsure if that's the best/ simplest way. I'm looking to learn as much as you're willing to teach
-
kbellis said:I also had started to wonder if defining a text file from variables, exporting it, and then importing it was an approach to consider; however, am unsure if that's the best/ simplest way.
Cheers,
Bob -
Well, thanks anyway. I appreciate your reply.
I've already done all of this in a spreadsheet, but was hoping to get a more elegant solution scripted. Maybe some other time.
-
-
Very nicely done Kelly !
-
Thanks Mykle.
-
bmg_bob said:Actually, using the DEFINE_TEXT_FILE command would be the only way to create layers. At the moment, however, that command does not handle variables as it should, so that will need to be fixed before your plan will work.
Cheers,
Bob
-
Woohoo! Will test after meetings today in Bangor. Thanks so much for this Bob!
-
Still testing v20 (b090518) (472); not sure if this issue is related:The DEFINE_TEXT_FILE command acted like it was working; however, the IMPORT_ASCII command acted like there wasn't anything to import. The log indicates that GMT1F6A.txt was (somehow) identified to load; however, no such file is located in the defined folder.What exactly is going on here and have I screwed up something?
-
Ooops - I see something got clipped in the above screen capture - sorry about that.
Howdy, Stranger!
Categories
- 12.2K All Categories
- 5.3K Features Discussion
- 312 Downloading Imagery
- 1.2K Elevation Data
- 371 Georeferencing Imagery Discussion
- 580 GM Script Language
- 42 User Scripts
- 111 GPS Features
- 388 Projection Questions
- 788 Raster Data
- 1.3K Vector Data
- 6.4K Support
- 159 Announcement and News
- 881 Bug Report
- 554 SDK
- 1.1K Suggestion Box
- 3.6K Technical Support
- 520 Other Discussion
- 125 GIS Data Sources
- 26 Global Mapper Showcase
- 217 How I use Global Mapper
- 99 Global Mapper Forum Website