- 积分
- 215
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-2-22
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2012-5-2 17:17:36
|
显示全部楼层
this.splitContainer1.Panel1.Controls.Add(G_LayerLegend);
AWXDataInfo asciiRead = new AWXDataInfo();
asciiRead.ReadDataInfo(@"U:\PUB2\STAR\ESLM3190.AWX");
GridData gridData = asciiRead.GetGridData();
int aaaaaa= gridData.XNum;
bool hasNoData = true;
LegendScheme aLS = LegendManage.CreateLegendSchemeFromGridData(gridData, LegendType.GraduatedColor,
ShapeTypes.Polygon, ref hasNoData);
RasterLayer aLayer = new RasterLayer();
//VectorLayer aLayer = new VectorLayer(ShapeTypes.Polygon);
//aLayer = DrawMeteoData.CreateShadedLayer(gridData, aLS, "aaa");
aLayer = DrawMeteoData.CreateRasterLayer(gridData, "als", aLS);
//aLayer.IsMaskout = true;
G_LayerLegend.ActiveMapFrame.AddLayer(aLayer, 0);
this.mapView1.PaintLayers();
我换成这样了还是出现溢出错误。
在桌面版本上是raster |
|