ドット密度レイヤを含むマップ
説明
ドット密度は、フィーチャ レイヤ、具体的にはスタイル修飾子主題図として名前付きマップに追加されます。ドット主題図ごとに、密度値の式 (密度主題図を実行するフィーチャ内の属性)、ドットごとの値 (属性のドットを表す数値)、およびドット スタイル (ドットを表示するスタイル) があります。
ドット密度主題図の詳細については、ドット密度主題図を参照してください。
例
ドット密度レイヤを含む名前付きマップ定義の例を以下に示します。
<?xml version="1.0" encoding="UTF-8"?>
<NamedMapDefinition version="MXP_NamedResource_1_5" xmlns="http://www.mapinfo.com/mxp" xmlns:gml="http://www.opengis.net/gml">
<ConnectionSet xmlns="http://www.mapinfo.com/mxp" />
<DataSourceDefinitionSet xmlns="http://www.mapinfo.com/mxp">
<NamedDataSourceDefinitionRef id="id4" resourceID="/NamedTables/STATES" />
</DataSourceDefinitionSet>
<MapDefinition id="id1" name="STATES Map" alias="Map17204816" xmlns="http://www.mapinfo.com/mxp">
<DisplayConditions>
<MapSize uom="mapinfo:imagesize pixel">
<ImageWidth>996</ImageWidth>
<ImageHeight>714</ImageHeight>
</MapSize>
<ZoomAndCenter>
<MapZoom uom="mapinfo:length mi">759.612</MapZoom>
<gml:Point srsName="mapinfo:coordsys 1,62">
<gml:coordinates>-76.272763,43.045175</gml:coordinates>
</gml:Point>
</ZoomAndCenter>
<DisplayCoordSys>
<SRSName>mapinfo:coordsys 1,62</SRSName>
</DisplayCoordSys>
<ResizeMethod>preserveZoom</ResizeMethod>
<RasterConditions dither="halfTone" trueColor="true" optimizeRasterLayers="screen" optimizeVectorLayers="screen" rasterReprojectionResampling="nearestNeighbor" rasterReprojection="none" />
</DisplayConditions>
<LayerList>
<FeatureLayer id="id5" name="STATES" alias="STATES" volatile="unknown">
<DataSourceRef ref="id4" />
<FeatureStyleModifierThemeList>
<FeatureStyleDensityTheme id="id6" alias="Dot Density Theme id6" name="Dot Density with Pop_Other">
<DensityValueExpression>
<NumericValueExpression>
<AttributeName>Pop_Other</AttributeName>
</NumericValueExpression>
</DensityValueExpression>
<ValuePerDot>79000</ValuePerDot>
<DotStyle>
<PointStyle>
<FontSymbol text=""" size="1" size-unit="mapinfo:length pt" stroke="rgb(0,255,128)" stroke-opacity="1" family="MapInfo 3.0 Compatible" />
</PointStyle>
</DotStyle>
</FeatureStyleDensityTheme>
<FeatureStyleDensityTheme id="id7" alias="Dot Density Theme id7" name="Dot Density with Pop_Urban">
<Visibility visible="false" />
<DensityValueExpression>
<NumericValueExpression>
<AttributeName>Pop_Urban</AttributeName>
</NumericValueExpression>
</DensityValueExpression>
<ValuePerDot>560000</ValuePerDot>
<DotStyle>
<PointStyle>
<FontSymbol text=""" size="4" size-unit="mapinfo:length pt" stroke="rgb(255,0,0)" stroke-opacity="1" family="MapInfo 3.0 Compatible" />
</PointStyle>
</DotStyle>
</FeatureStyleDensityTheme>
<FeatureStyleDensityTheme id="id8" alias="Dot Density Theme id8" name="Dot Density with Pop_1980">
<DensityValueExpression>
<NumericValueExpression>
<AttributeName>Pop_1980</AttributeName>
</NumericValueExpression>
</DensityValueExpression>
<ValuePerDot>480000</ValuePerDot>
<DotStyle>
<PointStyle>
<FontSymbol text=""" size="4" size-unit="mapinfo:length pt" stroke="rgb(0,0,0)" stroke-opacity="1" family="MapInfo 3.0 Compatible" />
</PointStyle>
</DotStyle>
</FeatureStyleDensityTheme>
</FeatureStyleModifierThemeList>
</FeatureLayer>
</LayerList>
</MapDefinition>
</NamedMapDefinition>