基于osgEarth搭建三维可视化平台 第7讲 矢量数据绘制
- 一、目标
- 二、内容
- 三、显示效果
一、目标
可以在场景中,显示shp格式矢量数据
二、内容
OGRFeatureOptions featureOptions;
featureOptions.url() = fileName;
AGGLiteOptions rasterOptions;
rasterOptions.featureOptions() = featureOptions;
rasterOptions.styles() = new StyleSheet();
rasterOptions.styles()->addStyle(style);
m_pMap->addLayer(new ImageLayer(fileName, rasterOptions));
三、显示效果

===========================================================
了解更多行业信息,敬请关注梦之图微信公众平台!详情请见www.dreamMap.cn。
长按二维码关注更多资讯