学习MeteoInfo二次开发教程(七)
1.站点文件
12010615.syn在D:\Program Files (x86)\MeteoInfo\Sample
SYNOP_Stations.csv在D:\Program Files (x86)\MeteoInfo\Station
2.同样修改:
breakList改为LegendBreaks
LegendStyleEnum改为LegendStyles
3.GetStationModelData()函数:
//Get station model data
double[,] stationModelData = new double[, ];
Extent aExtent = new Extent();
stationModelData = aDataInfo.GetStationModelData(ref aExtent);
在新版中改为:
//Get station model data
StationModelData stationModelData = aDataInfo.GetStationModelData();
4.“.UNDEF”错误:
aLayer = DrawMeteoData.CreateStationModelLayer(stationModelData, aDataInfo.UNDEF, aLS, "StationModel", true);
其中,aDataInfo.UNDEF参数改为aDataInfo.MissingValue
5.CreateSTVectorLayer错误:
把:
VectorLayer aLayer = DrawMeteoData.CreateSTVectorLayer(wdData, wsData, wdData, aLS, false, "StationVector", false);
改为:
VectorLayer aLayer = DrawMeteoData.CreateSTVectorLayer_old(wdData, wsData, wdData, aLS, false, "StationVector", false);
6.StationShaded程序错误:
StationShaded程序用的Demo中的程序,rain_2008072220.csv也从Demo的Sample中复制
Demo中的主程序在MeteoInfoDemo\Forms\frmMain.cs
7.天气现象符号显示乱码:
把MeteoInfo安装目录下的WeatherSymbol.ttf复制到C:\Windows\Fonts就好了。
学习MeteoInfo二次开发教程(七)的更多相关文章
- 学习 MeteoInfo二次开发教程(四)
教程四的问题不大. 1.private void AddMapFrame_ChinaSouthSea().private void AddTitle()两个函数和public Form1()函数并列. ...
- 学习MeteoInfo二次开发教程(十)
1.复制文件cloud_1009271330.000,I-01.pal 2.改: GridData cloud = aDataInfo.GetGridData(""); 为: Gr ...
- 学习 MeteoInfo二次开发教程(六)
在教程(五)的基础上加了Faded,Grid_Fill,Grid_Point,Raster,Vector,Barb,Streamline 1.同样注意修改LegendStyleEnum改为Legend ...
- 学习 MeteoInfo二次开发教程(五)
1.ActiveMapFrame部分没有大问题,按教程来就行. private void SetMapView()和private void ActiveMapFrameChanged(object ...
- 学习 MeteoInfo二次开发教程(一)
来自气象家园:http://bbs.06climate.com/forum.php?mod=viewthread&tid=6631 按照教程,没有太大问题,有些是对c#操作不熟悉导致. 1.添 ...
- 学习MeteoInfo二次开发教程(十二)
1.添加新的Form窗体: 在解决方案资源管理器中,右键MeteoInfoDemo,“添加”,“Windows 窗体” 2.新窗体中添加好layersLegend1和Layout之后,要把layers ...
- 学习MeteoInfo二次开发教程(十一)
1.新添加状态栏ToolStrip,可能名称为toolStripStatusLabel2 这时需要把TSSL_Coord改为toolStripStatusLabel2 2.SetMapView();语 ...
- 学习MeteoInfo二次开发教程(九)
最终的MaskOut功能未能实现 另外,一个有用的,在指定位置显示图片: legend.MarkerType = MarkerType.Image; legend.ImagePath = " ...
- 学习MeteoInfo二次开发教程(八)
总体没什么问题. 1.创建Projection菜单,Lambert,Geographic,ShowLatLon子菜单. 2.需要添加: using MeteoInfoC.Projections; 3. ...
随机推荐
- vscode plugins
├─ .obsolete├─ .wlck├─ .wtid├─ abeyuhang.vscode-lesslint-0.0.1├─ abierbaum.vscode-file-peek-1.0.1├─ ...
- 一个简易的allocator
#include <vector> #include <iostream> #include <algorithm> using namespace::std; t ...
- oracle with和insert结合使用
需求是这样的,先在一个从句中根据sub_code查询dis_code和reg_code, 再把这:两个值作为insert value的一部分,差到rate表里,好了,这里提供一种常规做法,和一种用wi ...
- Putty查看生产环境下程序后台日志
双击桌面的putty.exe,然后选择session会话.登录用户.一般用户名为root. 登录成功之后在黑窗口敲以下命令行: cd /temp 到指定目录ls 查看该目录下文件tail -f n ...
- 通过pid杀死进程
bool ****::KillProcess(DWORD pid) { // When the all operation fail this function terminate the " ...
- FCC JS基础算法题(2):Check for Palindromes(检查回文字符串)
题目描述: 如果给定的字符串是回文,返回true,反之,返回false.如果一个字符串忽略标点符号.大小写和空格,正着读和反着读一模一样,那么这个字符串就是palindrome(回文).注意你需要去掉 ...
- getfacl
ACL即Access Control List 主要的目的是提供传统的owner,group,others的read,write,execute权限之外的具体权限设置,ACL可以针对单一用户.单一文件 ...
- Linux目录路径知识
改IP为静态IP
- aps.net国际化本地资源 .resources”正确嵌入或链接到程序集
asp.net国际化提供了资源文件的解决的方式, asp.net自带的两个项目文件夹 分别是:App_GlobalResources和App_LocalResources, App_GlobalRes ...
- python day20面向对象-属性,类方法,静态方法
一.属性的初识 # class Person: # # def __init__(self,name,hight,weight): # self.name = name # self.__hight ...