Error: AVArray: Index [number] not in range...
Running the script "gps2shp.ave" returns:
"AVArray: Index [number] not in range..."
[number] can be any number.
Extra spaces in the points file can cause this error. These spaces may be found after the last record. The error occurs if the points file was created manually.
The script "gps2shp.ave" can be found in the ArcView Help > Contents > Sample scripts and extensions > Sample scripts > Views > Data conversion/alteration > Converts ASCII GPS output to shapefile.
Solution or Workaround
- Open the points file in a text editor.
- Remove extra spaces from the file.
The file should be ASCII text in the form:
- Press Enter after the last line.
Avoid adding any extra spaces