It seems that geostatistical layers are really just referencing the source of their input layers? http://resources.arcgis.com/en/help/main/10.2/index.html#/What_is_a_geostatistical_layer/00310000005z000000/http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/esriDatasetType_Constants/002500000042000000/I played around with it briefly and it seems to return 5-esriDTFeatureClass for some outputs, and 12-esriDTRasterDataset for other Geostatistical Layers.There must be some way to identify geostatistical layers though, obviously you can find a specific layer using the name in the TOC, but I'm not sure how you could identify just those layers created using geostatistical analyst. Sounds like a question for an MVP or support...
ESRI.ArcGIS.Carto.ILayer2 pLayer = default(ESRI.ArcGIS.Carto.ILayer2); ESRI.ArcGIS.Carto.IFeatureLayer2 pFLayer = default(ESRI.ArcGIS.Carto.IFeatureLayer2); ESRI.ArcGIS.Carto.IEnumLayer pEnumLayers = default(ESRI.ArcGIS.Carto.IEnumLayer); if (My.ArcMap.Document.FocusMap.LayerCount > 0) { pEnumLayers = My.ArcMap.Document.FocusMap.Layers; pLayer = pEnumLayers.Next; while (!(pLayer == null)) { if (pLayer is ESRI.ArcGIS.Carto.IFeatureLayer & !pLayer is ESRI.ArcGIS.Carto.IGroupLayer & pLayer.Valid) { pFLayer = new ESRI.ArcGIS.Carto.FeatureLayer(); pFLayer = pLayer; if (pFLayer.ShapeType == ESRI.ArcGIS.Geometry.esriGeometryType.esriGeometryPoint) { //a point layer } } pLayer = pEnumLayers.Next; } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.