<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Need to check layers type in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128688#M3369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have list of layers opened in ArcMap. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I need to check which layer is Point Layer (not Line or Polygon)... now i use &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (layer is IFeatureClass) but of course it add line and polygon layers too&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. And i need to check which layer is Geostatistical Layer and just it...now i use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (layer is IRasterLayer) but its have many varients and i need just geostatistical layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody help me (better with examples on c#)?:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Dec 2013 07:06:10 GMT</pubDate>
    <dc:creator>VeronikaLem</dc:creator>
    <dc:date>2013-12-24T07:06:10Z</dc:date>
    <item>
      <title>Need to check layers type</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128688#M3369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have list of layers opened in ArcMap. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I need to check which layer is Point Layer (not Line or Polygon)... now i use &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (layer is IFeatureClass) but of course it add line and polygon layers too&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. And i need to check which layer is Geostatistical Layer and just it...now i use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (layer is IRasterLayer) but its have many varients and i need just geostatistical layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody help me (better with examples on c#)?:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 07:06:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128688#M3369</guid>
      <dc:creator>VeronikaLem</dc:creator>
      <dc:date>2013-12-24T07:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need to check layers type</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128689#M3370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This code, taken from an add-in (which is why it uses My.ArcMap.Document), will loop through all the layers in your document and return only point layers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
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 &amp;gt; 0) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; pEnumLayers = My.ArcMap.Document.FocusMap.Layers;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pLayer = pEnumLayers.Next;
&amp;nbsp;&amp;nbsp;&amp;nbsp; while (!(pLayer == null)) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (pLayer is ESRI.ArcGIS.Carto.IFeatureLayer &amp;amp; !pLayer is ESRI.ArcGIS.Carto.IGroupLayer &amp;amp; pLayer.Valid) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pFLayer = new ESRI.ArcGIS.Carto.FeatureLayer();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pFLayer = pLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (pFLayer.ShapeType == ESRI.ArcGIS.Geometry.esriGeometryType.esriGeometryPoint) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //a point layer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pLayer = pEnumLayers.Next;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128689#M3370</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T07:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need to check layers type</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128690#M3371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and what about geostatistical layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Dec 2013 05:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128690#M3371</guid>
      <dc:creator>VeronikaLem</dc:creator>
      <dc:date>2013-12-25T05:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need to check layers type</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128691#M3372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not aware of a layer type specific to GeoStatistics&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 12:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128691#M3372</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-12-30T12:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need to check layers type</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128692#M3373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It seems that geostatistical layers are really just referencing the source of their input layers? &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/What_is_a_geostatistical_layer/00310000005z000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/What_is_a_geostatistical_layer/00310000005z000000/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/esriDatasetType_Constants/002500000042000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/esriDatasetType_Constants/002500000042000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I played around with it briefly and it seems to return 5-esriDTFeatureClass for some outputs, and 12-esriDTRasterDataset for other Geostatistical Layers.&lt;BR /&gt;&lt;BR /&gt;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.&amp;nbsp; Sounds like a question for an MVP or support...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, a GeoStatistical Analyst layer does have some unique aspects, with additional information in the TOC and a different context menu, so there must be some way of differentiating it. I just can't find any coclasses that implement &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/#/ILayer_Interface/0012000006z1000000/"&gt;ILayer&lt;/A&gt;&lt;SPAN&gt; which would represent a GeoStatistical layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 16:45:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128692#M3373</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-01-02T16:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need to check layers type</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128693#M3374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for yr answers. Will try to do smth to get what i need, or will write to esri support:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 04:29:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128693#M3374</guid>
      <dc:creator>VeronikaLem</dc:creator>
      <dc:date>2014-01-09T04:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to check layers type</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128694#M3375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;com.esri.arcgis.geostatisticalanalyst.GPGALayer&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;The Interface to this class would be IGPLayer or IDEGeoDataset.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 12:38:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-check-layers-type/m-p/128694#M3375</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2014-01-10T12:38:16Z</dc:date>
    </item>
  </channel>
</rss>

