ARCGIS PRO SDK VB2022 图层要素类类型判断

arcgis pro 常见要素类类型有以下几种:

FeatureLayer ------要素图层(矢量数据)

RasterLayer ------栅格图层

MapImageLayer ------地图图像图层

VectorTileLayer ------矢量切片图层

SceneLayer ------场景图层(3D)

GroupLayer ------组图层

WMSLayer - WMS ------服务图层

WMTSLayer - WMTS------服务图层

复制代码
Public Sub ProcessLayer(layer As Layer)
    If layer Is Nothing Then Return

    If TypeOf layer Is FeatureLayer Then
        Dim featureLayer As FeatureLayer = CType(layer, FeatureLayer)
        MessageBox.Show($"要素图层: {featureLayer.Name}")
        
    ElseIf TypeOf layer Is RasterLayer Then
        Dim rasterLayer As RasterLayer = CType(layer, RasterLayer)
        MessageBox.Show($"栅格图层: {rasterLayer.Name}")
        
    ElseIf TypeOf layer Is GroupLayer Then
        Dim groupLayer As GroupLayer = CType(layer, GroupLayer)
        MessageBox.Show($"组图层包含 {groupLayer.Layers.Count} 个子图层")
        
    ElseIf TypeOf layer Is MapImageLayer Then
        Dim mapImageLayer As MapImageLayer = CType(layer, MapImageLayer)
        MessageBox.Show($"地图图像图层: {mapImageLayer.Name}")
        
    Else
        MessageBox.Show($"未知图层类型: {layer.GetType().Name}")
    End If
End Sub
相关推荐
非科班Java出身GISer1 天前
ArcGIS JS 基础教程(46):编辑要素属性 FeatureForm
arcgis·arcgis js编辑要素·arcgis js 要素·arcgis js要素属性·arcgis js 编辑属性·arcgis js编辑要素属性
梅如你3 天前
ISPRS | 1990-2020年间中国人工林与天然林的空间分布数据
arcgis·gis·遥感
limit00756 天前
公开 WMTS / XYZ 瓦片接入 Cesium:6 类常见问题与排查顺序
chrome·低代码·arcgis·web3·旅游
limit00757 天前
三维模型悬空与切片偏移的排查顺序
低代码·3d·arcgis·web3·安卓·webgl
最强小杰7 天前
Continue + minimax-m3 接入教程:协议、模型 ID、404 与工具调用排错
arcgis·ai
2501_9343044011 天前
新增2026年! 2012-2026年全国逐月夜间灯光数据
arcgis·gis数据
梅如你11 天前
中国2026年路网数据
arcgis·gis·遥感
梦想的初衷~12 天前
GPT × ArcGIS 强强联合:AI助力数据处理、空间分析、可视化及多案例综合应用实战教程
人工智能·gpt·arcgis
时间的情敌12 天前
《WebGIS EPSG:4326 与 EPSG:3857 墨卡托投影转换》
arcgis·mars2d
时间的情敌13 天前
《Mars2D 快速上手,从零搭建三维 GIS 项目》
arcgis·mars2d