テーブルを含むレイヤ
例
名前付きテーブルへの参照を含む名前付きレイヤ定義の例を以下に示します。
この例では、World Countries というフィーチャー レイヤの属性を定義しています。このレイヤのデータ ソースは、パス /NamedTables/WorldTable を使用して Repository Service がアクセスできる名前付きテーブルです。
<?xml version="1.0" encoding="UTF-8"?>
<NamedLayer version="MXP_NamedResource_1_5" xmlns="http://www.mapinfo.com/mxp">
<ConnectionSet/>
<DataSourceDefinitionSet>
<NamedDataSourceDefinitionRef id="id1" resourceID="/NamedTables/WorldTable"/>
</DataSourceDefinitionSet>
<FeatureLayer id="id9" name="World Countries" alias="world" volatile="unknown">
<Visibility visible="true">
<VisibleRange enabled="false">
<ZoomRange uom="mapinfo:length mi">0 0</ZoomRange>
</VisibleRange>
</Visibility>
<DataSourceRef ref="id1"/>
</FeatureLayer>
</NamedLayer>