Supported table types – Pitney Bowes MapXtreme User Manual

Page 159

Advertising
background image

Chapter 8: Working with Data

Supported Table Types

MapXtreme v7.1

166

Developer Guide

VB example:

Public Shared Sub MapInfo_Data_Catalog()
’ Catalog is accessible off the Session object
Dim catalog As Catalog = Session.Current.Catalog

’ Open a bunch of tables
Dim table As Table = catalog.OpenTable("States.tab")
table.SessionInfo.ReadOnly = True ’ Make states ReadOnly
table = catalog.OpenTable("world.tab")
table = catalog.OpenTable("worldcap.tab", "World Capitals")

’ Enumerate the catalog directly - includes All tables
Dim t As Table
For Each t In catalog
Console.Out.WriteLine("Table : {0}", t.Alias)
Next
Console.Out.WriteLine()

’ Now enumerate through only tables that are editable (not ReadOnly)
Dim tEnum As ITableEnumerator = _

catalog.EnumerateTables(TableFilterFactory.FilterEditableTables())

While tEnum.MoveNext()
Console.Out.WriteLine("Table: {0}", tEnum.Current.Alias)
End While

Session.Current.Catalog.CloseAll()
End Sub

Supported Table Types

One of the strengths of MapXtreme is its ability to access data "where it lives." This means we strive
to handle a wide variety of data formats. Here are the supported table types in MapXtreme:

MapInfo .TAB format

MapInfo native table format.

This file-based table may have an associated .MAP file containing
FeatureGeometry and Style information. Non-spatial data is stored in a
.DAT file. TAB is available as a storage format to be used when caching.
See

Creating a New Table

.

dBase

Data stored in a dBase file.

The table may have an associated .MAP file containing FeatureGeometry
and Style information. Non-spatial data is stored in a .DBF file. An
associated .IND file holds one or more B-Tree indices for non-spatial
attribute values (strings, numbers, and dates)

Advertising