Shapefile

Example

This is an example of a named table definition for a shapefile.

In this example, the definition uses 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="/Samples/NamedConnections/FileNamedConnection">
            <ConnectionName>FileNamedConnection</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>