Shapefile
Example
This is an example of a named table definition for a shapefile.
In this example, the definition uses the following tokens:
- @filedir@ the directory on the file system where the shapefile is located
<?xml version="1.0" encoding="UTF-8"?>
<NamedDataSourceDefinition version="MXP_NamedResource_1_5" xmlns="http://www.mapinfo.com/mxp">
<ConnectionSet>
<NamedConnectionRef resourceID="/Samples/NamedConnections/SampleData">
<ConnectionName>SampleData</ConnectionName>
</NamedConnectionRef>
</ConnectionSet>
<DataSourceDefinitionSet>
<ShapeFileDataSourceDefinition id="id3" readOnly="false">
<DataSourceName>COUNTRIES</DataSourceName>
<FileName>@filedir@/Countries.shp</FileName>
<ShapeFileDataSourceMetadata>
<SRSName>mapinfo:coordsys 12, 62, 7, 0.0</SRSName>
</ShapeFileDataSourceMetadata>
</ShapeFileDataSourceDefinition>
</DataSourceDefinitionSet>
<DataSourceRef ref="id3"/>
</NamedDataSourceDefinition>