Import_ascii
Sean Bampton
Global Mapper UserTrusted User
I'm working on a simple script in 14.2.6 to import a text file of coordinates and export each shape, point and line to individual files, into a folder called Shapes.
My problem is this:
WARNING: Unknown parameter <IMPORT_ASCII> ignored.
Removed all loaded overlays.
I've read the help file for this command and I'm pretty sure I'm using it right.
My script looks like this so far:
GLOBAL_MAPPER_SCRIPT VERSION=1.00
UNLOAD_ALL \
IMPORT_ASCII \
FILENAME="C:\Users\Admin\Desktop\Coords.txt" \
PROJ="C:\Users\Admin\Desktop\coords.prj" \
TYPE=POINT_AND_LINE \
COORD_DELIM=WHITESPACE \
COORD_ORDER=Y_FIRST \
CREATE_AREAS_FROM_LINES
I've tried running the script directly from the desktop and also from inside the GM GUI (File > Run Script)
Assistance would be greatly appreciated.
My problem is this:
WARNING: Unknown parameter <IMPORT_ASCII> ignored.
Removed all loaded overlays.
I've read the help file for this command and I'm pretty sure I'm using it right.
My script looks like this so far:
GLOBAL_MAPPER_SCRIPT VERSION=1.00
UNLOAD_ALL \
IMPORT_ASCII \
FILENAME="C:\Users\Admin\Desktop\Coords.txt" \
PROJ="C:\Users\Admin\Desktop\coords.prj" \
TYPE=POINT_AND_LINE \
COORD_DELIM=WHITESPACE \
COORD_ORDER=Y_FIRST \
CREATE_AREAS_FROM_LINES
I've tried running the script directly from the desktop and also from inside the GM GUI (File > Run Script)
Assistance would be greatly appreciated.
Comments
-
Hi Sean,
You should remove the "\<newline>" at the end of your UNLOAD_ALL command (see code below). That is causing Global Mapper to interpret the following line as a continuation of the current command, so it thinks that IMPORT_ASCII is a parameter on the UNLOAD_ALL command. That is causing the error message.[COLOR=#333333]GLOBAL_MAPPER_SCRIPT VERSION=1.00[/COLOR] [COLOR=#333333]UNLOAD_ALL[/COLOR] [COLOR=#333333]IMPORT_ASCII \[/COLOR] [COLOR=#333333]FILENAME="C:\Users\Admin\Desktop\Coords.txt" \[/COLOR] [COLOR=#333333]PROJ="C:\Users\Admin\Desktop\coords.prj" \[/COLOR] [COLOR=#333333]TYPE=POINT_AND_LINE \[/COLOR] [COLOR=#333333]COORD_DELIM=WHITESPACE \[/COLOR] [COLOR=#333333]COORD_ORDER=Y_FIRST \[/COLOR] [COLOR=#333333]CREATE_AREAS_FROM_LINES[/COLOR]
Cheers,
Bob -
Hahaha. Thanks Bob. Sometimes its the simplest things that stop us.
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