zoukankan      html  css  js  c++  java
  • 学习MeteoInfo二次开发教程(七)

    1.站点文件

    12010615.syn在D:Program Files (x86)MeteoInfoSample
    SYNOP_Stations.csv在D:Program Files (x86)MeteoInfoStation

    2.同样修改:

    breakList改为LegendBreaks
    LegendStyleEnum改为LegendStyles

    3.GetStationModelData()函数:

    1 //Get station model data
    2 double[,] stationModelData = new double[10, 1];
    3 Extent aExtent = new Extent();
    4 stationModelData = aDataInfo.GetStationModelData(ref aExtent);
    5 在新版中改为:
    6 //Get station model data
    7 StationModelData stationModelData = aDataInfo.GetStationModelData();

    4.“.UNDEF”错误:

    1 aLayer = DrawMeteoData.CreateStationModelLayer(stationModelData, aDataInfo.UNDEF, aLS, "StationModel", true);

    其中,aDataInfo.UNDEF参数改为aDataInfo.MissingValue

    5.CreateSTVectorLayer错误:

    把:

    1 VectorLayer aLayer = DrawMeteoData.CreateSTVectorLayer(wdData, wsData, wdData, aLS, false, "StationVector", false);

    改为:

    1 VectorLayer aLayer = DrawMeteoData.CreateSTVectorLayer_old(wdData, wsData, wdData, aLS, false, "StationVector", false);

    6.StationShaded程序错误:

    StationShaded程序用的Demo中的程序,rain_2008072220.csv也从Demo的Sample中复制
    Demo中的主程序在MeteoInfoDemoFormsfrmMain.cs

    7.天气现象符号显示乱码:

    把MeteoInfo安装目录下的WeatherSymbol.ttf复制到C:WindowsFonts就好了。

  • 相关阅读:
    python中的if...else...、while、for
    linux的/etc/passwd、/etc/shadow、/etc/group和/etc/gshadow
    [国家集训队]middle
    [SCOI2007]修车
    基本图论-连通分量(强/弱联通 割点/边 边/点双)
    [NOI2008]奥运物流
    [NOI2008]假面舞会
    [NOI2008]设计路线
    [SCOI2009]windy数
    [SCOI2013]多项式的运算
  • 原文地址:https://www.cnblogs.com/PanDaSong/p/6956443.html
Copyright © 2011-2022 走看看