ImportBTS()
Summary
Imports features from a BTS National Transportation Atlas file.
Syntax
ImportBTS(string filename, string new_db_name, string layer_type, array options)
| Argument |
Contents |
| filename |
The path and file name of the file to import |
| new_db_name |
The path and file name of the new geographic file |
| layer_type |
The type of features to import: Point, Line, or Area |
| Option |
Type |
Contents |
| Label |
String |
A descriptive label for the geographic file |
| Layer Name |
String |
The name of the layer in the geographic file |
| Median Split |
Boolean |
If "True" special handling ensures that entities which cross the 180 degree longitude line are imported properly; if "False" (the default), no special handling is invoked |
| Node Layer Name |
String |
The desired name for the endpoint layer (only when importing a line layer) |
| Node Table |
String |
The path and file name in which node attributes are stored (only when importing a line layer); the file extension must be .BIN, .CSV, .DBF, or .TXT |
| Optimize |
Boolean |
Whether to optimize the geographic file automatically after the import (defaults to "True") |
| Table Filename |
String |
The path and file name in which attributes are stored; the file extension must be .BIN, .CSV, .DBF, or .TXT; a required option |
Example
ImportBTS("c:\\ntad\\bea.ARE", "bea.dbd", "Area", {
{"Label", "Bureau of Economic Analysis Areas"},
{"Layer Name", "BEA Area"},
{"Optimize", "True"},
{"Table Filename", "bea.bin"}
})
Error Codes
| Error Type |
Meaning |
| NotFound |
There is no file by this name |
| Error |
The file is not a valid National Transportation Atlas file |