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; } }
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/00310000005...
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/esriDatasetType_Constant...
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...