Shapefile - spectrum_spatial - Latest

Spectrum Spatial Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spectrumâ„¢ software > Spatial > Spectrum Spatial
Version
Latest
ft:locale
en-US
Product name
Spectrum Technology Platform
ft:title
Spectrum Spatial Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2025-03-07
ft:lastPublication
2025-03-07T10:28:48.112000

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>