爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: MeteoInfo

调查大家希望MeteoInfo具备的功能

[复制链接]
 楼主| 发表于 2011-8-24 09:33:46 | 显示全部楼层
Legendscheme是可以在MeteoInfo软件里编辑的,编辑好的Legendscheme可以保持为文件然后在脚本程序里调用。比如讲述站点数据绘制等值线的帖子(http://bbs.06climate.com/forum.p ... &extra=page%3D1)里的降水色标就是事先在MeteoInfo软件里编辑好的。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-8-24 14:35:14 | 显示全部楼层

见帖子:脚本程序中编辑图例LegendScheme
http://bbs.06climate.com/forum.p ... 911&fromuid=106
密码修改失败请联系微信:mofangbao
发表于 2011-8-24 21:52:04 | 显示全部楼层
<MeteoInfo name="Default" type="projectfile">
  <Extents xMin="-180" xMax="180" yMin="-90" yMax="83.6235961914063" />
  <MapProperty BackColor="White" ForeColor="buttontext" SmoothingMode="Default" />
  <GridLine GridLineColor="Black" GridLineSize="1" GridLineStyle="Dash" DrawGridLine="False" DrawGridTickLine="False" />
  <MaskOut SetMaskLayer="False" MaskLayer="" />
  <Projection IsLonLatMap="True" ProjStr=" +proj=lonlat +ellps=WGS84 +datum=WGS84 +no_defs= +k=1" RefLon="0" RefCutLon="0" />
  <Layers>
    <Layer Handle="1" LayerName="country1" FileName="Map\country1.shp" Visible="True" IsMaskout="False" LayerType="VectorLayer" LayerDrawType="Map" ShapeType="Polygon" AvoidCollision="True" TransparencyPerc="0" Expanded="True">
      <LegendScheme FieldName="" LegendType="SingleSymbol" ShapeType="Polygon" BreakNum="1" HasNoData="False" MinValue="0" MaxValue="0" UNDEF="-9999">
        <Breaks>
          <Break Caption="" StartValue="0" EndValue="0" Color="#FFFBC3" DrawShape="True" OutlineColor="Gray" DrawOutline="True" DrawFill="True" OutlineSize="0.1" UsingHatchStyle="False" Style="Horizontal" BackColor="Transparent" />
        </Breaks>
      </LegendScheme>
      <LabelSet DrawLabels="False" FieldName="SOVEREIGN" FontName="Arial" FontSize="8" LabelColor="Red" DrawShadow="False" ShadowColor="White" AlignType="Center" Offset="0" AvoidCollision="True" />
      <Graphics />
    </Layer>
    <Layer Handle="2" LayerName="china.shp" FileName="Map\china.shp" Visible="True" IsMaskout="False" LayerType="VectorLayer" LayerDrawType="Map" ShapeType="Polygon" AvoidCollision="True" TransparencyPerc="0" Expanded="False">
      <LegendScheme FieldName="" LegendType="SingleSymbol" ShapeType="Polygon" BreakNum="1" HasNoData="False" MinValue="0" MaxValue="0" UNDEF="-9999">
        <Breaks>
          <Break Caption="" StartValue="0" EndValue="0" Color="#FFFBC3" DrawShape="True" OutlineColor="Gray" DrawOutline="True" DrawFill="True" OutlineSize="1" UsingHatchStyle="False" Style="Horizontal" BackColor="Transparent" />
        </Breaks>
      </LegendScheme>
      <LabelSet DrawLabels="False" FieldName="" FontName="Arial" FontSize="7" LabelColor="Black" DrawShadow="False" ShadowColor="White" AlignType="Center" Offset="0" AvoidCollision="True" />
      <Graphics />
    </Layer>
  </Layers>
  <Graphics />
</MeteoInfo>

LayerName="country1"这个只能是英文字符吗?我一修改成中文字符,程序就报错。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-8-24 22:46:01 | 显示全部楼层
可以是中文
密码修改失败请联系微信:mofangbao
发表于 2011-8-24 23:13:32 | 显示全部楼层

貌似不行的哦?汉字的编码有问题呢,我的meteoinfo在调用中文目录下的文件后,我查看default.mip文件,出现如下问题:
    <Layer Handle="4" LayerName="鍦扮骇琛屾斂鐣岄檺.shp" FileName="D:\妗岄潰澶囦唤\鍦板浘\鍦扮骇琛屾斂鐣岄檺\鍦扮骇琛屾斂鐣岄檺.shp" Visible="True" IsMaskout="False" LayerType="VectorLayer" LayerDrawType="Map" ShapeType="Polyline" AvoidCollision="True" TransparencyPerc="0" Expanded="False">
看来汉字的编码处理起来有问题呢。怪不得我直接修改default.mip,赋值给中文字符回提示如下错误。

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.Xml.XmlException: 给定编码中的字符无效。 行 8,位置 34。
   在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
   在 System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   在 System.Xml.XmlTextReaderImpl.InvalidCharRecovery(Int32& bytesCount, Int32& charsCount)
   在 System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount)
   在 System.Xml.XmlTextReaderImpl.ReadData()
   在 System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   在 System.Xml.XmlTextReaderImpl.ParseAttributes()
   在 System.Xml.XmlTextReaderImpl.ParseElement()
   在 System.Xml.XmlTextReaderImpl.ParseElementContent()
   在 System.Xml.XmlTextReaderImpl.Read()
   在 System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   在 System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   在 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   在 System.Xml.XmlDocument.Load(XmlReader reader)
   在 System.Xml.XmlDocument.Load(String filename)
   在 MeteoInfoCDemo.Classes.ProjectFile.LoadProjFile(String aFile) 位置 D:\MyProgram\CSharp\MeteoInfoCDemo\Classes\ProjectFile.cs:行号 86
   在 MeteoInfoCDemo.frmMain.frmMain_Load(Object sender, EventArgs e) 位置 D:\MyProgram\CSharp\MeteoInfoCDemo\Forms\frmMain.cs:行号 80
   在 System.Windows.Forms.Form.OnLoad(EventArgs e)
   在 System.Windows.Forms.Form.OnCreateControl()
   在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   在 System.Windows.Forms.Control.CreateControl()
   在 System.Windows.Forms.Control.WmShowWindow(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
   在 System.Windows.Forms.Form.WmShowWindow(Message& m)
   在 System.Windows.Forms.Form.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** 已加载的程序集 **************
mscorlib
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.42 (RTM.050727-4200)
    基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MeteoInfoCDemo
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/Documents%20and%20Settings/BlueET/桌面/meteoinfocdemo/MeteoInfoCDemo/bin/Debug/MeteoInfoCDemo.exe
----------------------------------------
System.Windows.Forms
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.42 (RTM.050727-4200)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.42 (RTM.050727-4200)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.42 (RTM.050727-4200)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
MeteoInfoC
    程序集版本: 0.9.9.8
    Win32 版本: 0.9.9.8
    基本代码: file:///C:/Documents%20and%20Settings/BlueET/桌面/meteoinfocdemo/MeteoInfoCDemo/bin/Debug/MeteoInfoC.DLL
----------------------------------------
System.Configuration
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.42 (RTM.050727-4200)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.42 (RTM.050727-4200)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.42 (RTM.050727-4200)
    基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System.XML.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.42 (RTM.050727-4200)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Xml.resources.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.42 (RTM.050727-4200)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。




密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-8-25 08:26:43 | 显示全部楼层
可以在第一行加入:
<?xml version="1.0" encoding="gb2312"?>
密码修改失败请联系微信:mofangbao
发表于 2011-8-31 02:25:42 | 显示全部楼层
本帖最后由 孤蓝et 于 2011-8-31 10:49 编辑

Meteoinfo在打开micaps第一类数据的时候,当地图放大到一定程度后,左右拖动、放大缩小地图的速度很慢,不知道是什么原因?
我的第一类数据有498个台站,我想这个数量的台站应该不算多吧?我把我的资料放到附件了。希望老大帮我看看?

11082706.rar (8.23 KB, 下载次数: 4)
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-8-31 07:25:19 | 显示全部楼层
孤蓝et 发表于 2011-8-31 02:25
Meteoinfo在打开micaps第一类数据的时候,当地图放大到一定程度后,左右拖动、放大缩小地图的 ...

你需要确认几件事。
1. 你用的MeteoInfo是什么版本?是不是最新的文件?
2. 你是不是进行了投影?
3. 你把micaps第一类数据生成的图层关闭后是不是仍然有这种现象?

如果你没有用最新的文件,而且有投影的话,放大到一定程度绘制经纬线会很大程度降低图形渲染速度,应该和micaps第一类数据什么的没有关系。在最新的文件中已经进行了改进。
密码修改失败请联系微信:mofangbao
发表于 2011-8-31 11:00:15 | 显示全部楼层
MeteoInfo 发表于 2011-8-31 07:25
你需要确认几件事。
1. 你用的MeteoInfo是什么版本?是不是最新的文件?
2. 你是不是进行了投影?

谢谢斑竹解答,找到问题了。
我是用了投影,并show lat/lon,放大到一定比例后响应速度变慢。
后面关掉show lat/lon,一切正常。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-8-31 11:11:55 | 显示全部楼层
孤蓝et 发表于 2011-8-31 11:00
谢谢斑竹解答,找到问题了。
我是用了投影,并show lat/lon,放大到一定比例后响应速度变慢。
后面关掉 ...

你如果用MeteoInfo最新的文件,即使显示经纬度也不会对显示速度有影响。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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