Maptitude GISDK Help |
Collects summary information on the contents of a MapInfo TAB file.
tab_info = GetMITABInfo(string tab_file_name)
Argument |
Contents |
tab_file_name |
The path and file name of the MapInfo TAB file |
An array of information as follows:
Element |
Type |
Contents |
1 |
Array |
An array of two strings and an array. The first string is the projection: "None", "Local", or the name of the projection. The second string is the projection parameters, or null if there is no projection. The array contains four real numbers defining the bounding coordinates of the file: {x_min, y_min, x_max, y_max} |
2 |
Array |
An array of four real numbers with a scale and offset linear transformation: {real X_multiplier, real Y_multiplier, real X_offset, real Y_offset} |
3 |
String |
The TAB file version number, for example "300" |
4 |
Array |
An array of strings with the names of the fields |
5 |
Array |
An array of arrays, one for each entity type: Points, Lines, and Areas; each array contains two elements, the name of the entity type and the number of entities of that type |
// This call...
tab_info = GetMITABInfo("c:\\USA.tab")
// Returns this type of information...
// tab_info = {
// {"None", , {-187.551936, 18.913826, ...}}, |
(projection and bounding rect) |
// {1.0, 1.0, 0.0, 0.0} |
(linear transformation) |
// {"300"} |
(version number) |
// {"URL","Total_Area"...}, |
(field names) |
// {{"Points", 0},...}, |
(entity types) |
// }
Error Type |
Meaning |
NotFound |
There is no MapInfo TAB file with the given path and file name |
Error |
The file is not a valid MapInfo TAB file |
Function |
Summary |
Adds a layer from a MapInfo TAB file to a map |
|
Adds a MapInfo TAB file layer to an application without it appearing in a map or dataview |
©2025 Caliper Corporation | www.caliper.com |