gps tracking exporting script
montaser
Global Mapper UserTrusted User
dear all, whenever I start GM 10 connecting Magellan Trackin' gps unit to PC and then it starts tracking .after; I load the following script:
GLOBAL_MAPPER_SCRIPT VERSION=1.00
EXPORT_VECTOR FILENAME="D:\DATA\rocket.xyz" TYPE=SIMPLE_ASCII
after that running it; it'll show the following error message:
Exporting vector data to file \DATA\rocket.xyz...
ERROR: Vector data must be loaded for EXPORT_VECTOR command.
Script processing COMPLETED.
any help?!!
GLOBAL_MAPPER_SCRIPT VERSION=1.00
EXPORT_VECTOR FILENAME="D:\DATA\rocket.xyz" TYPE=SIMPLE_ASCII
after that running it; it'll show the following error message:
Exporting vector data to file \DATA\rocket.xyz...
ERROR: Vector data must be loaded for EXPORT_VECTOR command.
Script processing COMPLETED.
any help?!!
Comments
-
You would need to first use the GPS->Save Tracklog menu command to have your active GPS track saved to a line feature that could be exported. Otherwise there is any exportable vector data available for the script to use. You also need to make sure to check the box to run the script in the context of the main map view so that any data there (such as a saved tracklog) would be available to the script.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
thax Mike it works now but there is another problem whenever I' running my external script
while GM is opened there is no output in the destined folder.
but when I open it from run script in GM it works..why?? -
If you are running that script from the command line it will run in a new instance of Global Mapper, so since your script doesn't load any data to export there wouldn't be any data available to be exported. To export data loaded in the main map view of a running Global Mapper instance you would have to run the script from that running Global Mapper instance.
If you need to programmatically access a GPS device that is being tracked you would need to use the Global Mapper SDK. See the Developers page at GIS Mapping Software - GPS Mapping Software - Satellite Maps - Aerial Photos [Global Mapper] for more details.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website