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

    1.ActiveMapFrame部分没有大问题,按教程来就行。

    private void SetMapView()和private void ActiveMapFrameChanged(object sender, EventArgs e)函数与public Form1()并列

    语句:

    1 layersLegend1.ActiveMapFrameChanged += new EventHandler(ActiveMapFrameChanged);

    在public Form1()中。

    2.画Grads数据部分

    VectorLayer aLayer = DrawMeteoData.CreateContourLayer(press, aLS, "Contour_PS");

    这一句中参数需要4个,改为:

    VectorLayer aLayer = DrawMeteoData.CreateContourLayer(press, aLS, "Contour_PS","SongPan");

    “Contour_PS”参数是Legend的名称,图例的标题会显示“PS”,如果改为“ContPS”,则显示“ContPS”,而改成“Contour_Song”,则显示“Song”,似乎“Contour_”是一个格式。

    最后一个参数“SongPan”似乎没什么显著作用,可以任意设置。

    3.LegendStyleEnum不再使用

    1 aLegend.LegendStyle = LegendStyleEnum.Normal;
    2 改为:
    3 aLegend.LegendStyle = LegendStyles.Normal; 

    4.Samplemodel.ctl和model.dat需要copy到ProjectsMeteoInfoDemoMeteoInfoDemoinDebugSample中

  • 相关阅读:
    date日期格式化
    表单解析模块formidable
    express-session模块
    密码加密模块bcrypt
    后端数据验证模块Joi
    mongoose-sex-page分页模块
    决策树算法及应用
    朴素贝叶斯分类
    实验二 K-邻近
    实验一 感知器及其应用
  • 原文地址:https://www.cnblogs.com/PanDaSong/p/6952813.html
Copyright © 2011-2022 走看看