爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
12
返回列表 发新帖
楼主: hhuwzy1981

标注的问题

[复制链接]

新浪微博达人勋

发表于 2012-3-12 09:56:03 | 显示全部楼层

图例文件“.lgs”可以设置自定义图片文件的路径,从而将点图元显示为自定义图片。

比如:
<MeteoInfo file="testlgs" type="LegendScheme">
  <LegendScheme FieldName="NAME" LegendType="UniqueValue" ShapeType="Point" BreakNum="34" HasNoData="False" MinValue="0" MaxValue="0" UNDEF="-9999">
    <Breaks>
      <Break Caption="北京" StartValue="北京" EndValue="北京" Color="#2D6697" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="天津" StartValue="天津" EndValue="天津" Color="#FAC258" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="石家庄" StartValue="石家庄" EndValue="石家庄" Color="#A8A5EE" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="太原" StartValue="太原" EndValue="太原" Color="#602A87" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="呼和浩特" StartValue="呼和浩特" EndValue="呼和浩特" Color="#316C5A" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="沈阳" StartValue="沈阳" EndValue="沈阳" Color="#0EBA32" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="长春" StartValue="长春" EndValue="长春" Color="#86D541" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="哈尔滨" StartValue="哈尔滨" EndValue="哈尔滨" Color="#B84EE3" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="上海" StartValue="上海" EndValue="上海" Color="#D2C8C8" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="南京" StartValue="南京" EndValue="南京" Color="#D6A9F1" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="杭州" StartValue="杭州" EndValue="杭州" Color="#283002" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="合肥" StartValue="合肥" EndValue="合肥" Color="#9F7958" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="福州" StartValue="福州" EndValue="福州" Color="#C61FCC" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="南昌" StartValue="南昌" EndValue="南昌" Color="#6D43C0" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="济南" StartValue="济南" EndValue="济南" Color="#E1A83D" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="郑州" StartValue="郑州" EndValue="郑州" Color="#A86D07" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="武汉" StartValue="武汉" EndValue="武汉" Color="#00A4F7" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="长沙" StartValue="长沙" EndValue="长沙" Color="#C827E3" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="广州" StartValue="广州" EndValue="广州" Color="#4F7518" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="南宁" StartValue="南宁" EndValue="南宁" Color="#B428F9" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="海口" StartValue="海口" EndValue="海口" Color="#90D1FB" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="成都" StartValue="成都" EndValue="成都" Color="#FD38FA" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="重庆" StartValue="重庆" EndValue="重庆" Color="#8491F3" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="贵阳" StartValue="贵阳" EndValue="贵阳" Color="#01479A" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="昆明" StartValue="昆明" EndValue="昆明" Color="#651892" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="拉萨" StartValue="拉萨" EndValue="拉萨" Color="#80D6A5" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="西安" StartValue="西安" EndValue="西安" Color="#A62A5B" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="兰州" StartValue="兰州" EndValue="兰州" Color="#C1D504" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="西宁" StartValue="西宁" EndValue="西宁" Color="#FA5F08" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="银川" StartValue="银川" EndValue="银川" Color="#1F4F04" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="乌鲁木齐" StartValue="乌鲁木齐" EndValue="乌鲁木齐" Color="#3F12F7" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="台北" StartValue="台北" EndValue="台北" Color="#D2DD71" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="澳门" StartValue="澳门" EndValue="澳门" Color="#C4E470" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
      <Break Caption="香港" StartValue="香港" EndValue="香港" Color="#4223DB" DrawShape="True" OutlineColor="Black" Size="10" Style="Circle" DrawOutline="True" DrawFill="True" IsNoData="False" MarkerType="Image" FontName="Arial" CharIndex="0" ImagePath="F:\MyProgram\CSharp\MeteoInfoDev\MeteoInfo\bin\Debug\Image\00.png" Angle="0" />
    </Breaks>
  </LegendScheme>
</MeteoInfo>
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表