Table metadata (tableinfo) – Pitney Bowes MapXtreme User Manual

Page 165

Advertising
background image

Chapter 8: Working with Data

Table Metadata (TableInfo)

MapXtreme v7.1

172

Developer Guide

Table Metadata (TableInfo)

The TableInfo class in the MapInfo.Data namespace is an abstract base class that contains
information, or metadata, about an existing table, including:

Columns – number, names, data types, etc.

Table alias, and description and pathname of the data source.

Client metadata (the information between the begin_metadata/end_metadata tags in the TAB
file).

TableInfo is used to open tables and create new tables. It is also used for retrieving information
about the open table.

Classes that derive from TableInfo include provider-specific metadata. There is a TableInfo
implementation for every MapXtreme supported table type. See

Data Sources

.

TableInfo instances may be constructed manually, or from a .TAB file definition (without opening the
table), as shown below.

TableInfo.CreateFromFile(…)

TableInfo contains properties for enabling Table Services, including caching and making a table
mappable via a spatial schema. See

Working with the Cache

and

Making Tables Mappable

.

MapXtreme provides table column metadata support for M and Z values. This feature is useful when
you want to know whether geometries of a particular data provider can support 3D and Measured
values without evaluating its individual geometries.

Metadata for a table can be accessed from the table's TableInfo property. From the table metadata
you can access the GeometryColumn to interrogate if the table supports M or Z values and what the
range of values for that table is if the range is known. For more information on support for M and Z
values, see

Support for M and Z Values

.

Advertising