PostgreSQL/PostGIS Database Table

Example

This is an example of a named table definition for a PostgreSQL/PostGIS database table, using the PostGIS data provider.

In this example, the definition defines a connection to a PostGIS database table using the following tokens:

<?xml version="1.0" encoding="UTF-8"?>
<NamedDataSourceDefinition version="MXP_NamedResource_1_5" xmlns="http://www.mapinfo.com/mxp">
     <ConnectionSet>
           <NamedConnectionRef resourceID="@named_connection_path@">
                <ConnectionName>Connection_1</ConnectionName>
           </NamedConnectionRef>
     </ConnectionSet>
     <DataSourceDefinitionSet>
           <DBDataSourceDefinition id="dbDataSourceDef1" volatile="true">
                <DataSourceName>PostgresqlDataSource</DataSourceName>
                <ConnectionMember>
                     <ConnectionName>Connection_1</ConnectionName>
                </ConnectionMember>
                <DBTable owner="@schema@" useQuotes="true">@table@</DBTable>
           </DBDataSourceDefinition>
     </DataSourceDefinitionSet>
     <DataSourceRef ref="dbDataSourceDef1"/>
</NamedDataSourceDefinition>