<?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 Re: SOI get data source in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/soi-get-data-source/m-p/1236724#M20551</link>
    <description>&lt;P&gt;Dear&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/10024" target="_self"&gt;&lt;SPAN class=""&gt;MatejSkerjanc&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;yes it is possible to get name and other information of table or featurelayers of the mapservice,&lt;/P&gt;&lt;P&gt;what you should do, first you should create the mapservice object then get the information from that object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IMapServerDataAccess mapServerDataAccess = (IMapServerDataAccess) this.so;&lt;BR /&gt;ms = (IMapServer) mapServerDataAccess;&lt;/P&gt;&lt;P&gt;String table_name = ms.getServerInfo(ms.getDefaultMapName()).getName();&lt;/P&gt;&lt;P&gt;I hope this work for you.&lt;/P&gt;&lt;P&gt;If you need more clarification you can make contact with me.&lt;/P&gt;&lt;P&gt;amir@wheretech.it&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 08:32:47 GMT</pubDate>
    <dc:creator>Amir-Sarrafzadeh-Arasi</dc:creator>
    <dc:date>2022-12-01T08:32:47Z</dc:date>
    <item>
      <title>SOI get data source</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soi-get-data-source/m-p/675526#M18080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible to get data source (i.e. table name) during&amp;nbsp;HandleRESTRequest&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have access to the following&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;private string _soiName;&lt;BR /&gt; private IServerObjectHelper _soHelper;&lt;BR /&gt; private ServerLogger _serverLog;&lt;BR /&gt; private RestSOIHelper _restSOIHelper;&lt;BR /&gt; private IMapServerDataAccess mapServerDataAccess;&lt;BR /&gt; private IMapLayerInfos layerInfos;&lt;BR /&gt; private IFeatureClass layerData;&lt;BR /&gt; private IMapServer3 ms;&lt;/P&gt;&lt;P&gt;private List&amp;lt;IMapLayerInfo&amp;gt; iInfos;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_soHelper = pSOH;&lt;BR /&gt; _serverLog = new ServerLogger();&lt;BR /&gt; _restSOIHelper = new RestSOIHelper(pSOH);&lt;/P&gt;&lt;P&gt;this.mapServerDataAccess = (IMapServerDataAccess)_soHelper.ServerObject;&lt;BR /&gt; this.ms = (IMapServer3)this.mapServerDataAccess;&lt;BR /&gt; IMapServerInfo mapServerInfo = ms.GetServerInfo(ms.DefaultMapName);&lt;/P&gt;&lt;P&gt;this.layerInfos = mapServerInfo.MapLayerInfos;&lt;/P&gt;&lt;P&gt;iInfos = new List&amp;lt;IMapLayerInfo&amp;gt;();&lt;BR /&gt; for (int i = 0; i &amp;lt; this.layerInfos.Count; i++)&lt;BR /&gt; {&lt;BR /&gt; IMapLayerInfo layer = layerInfos.get_Element(i);&lt;BR /&gt; this.iInfos.Add(layer); &lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So i have mapserverdataAccess, layerinfos, imaplayerinfo, mapserver, ifeatureclass.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to get data source of these? I've tried everything to my limited arcobjects knowledge to no avail.&lt;/P&gt;&lt;P&gt;Help is appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards, Matej&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 12:23:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soi-get-data-source/m-p/675526#M18080</guid>
      <dc:creator>MatejSkerjanc</dc:creator>
      <dc:date>2018-03-26T12:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: SOI get data source</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soi-get-data-source/m-p/1236724#M20551</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/10024" target="_self"&gt;&lt;SPAN class=""&gt;MatejSkerjanc&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;yes it is possible to get name and other information of table or featurelayers of the mapservice,&lt;/P&gt;&lt;P&gt;what you should do, first you should create the mapservice object then get the information from that object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IMapServerDataAccess mapServerDataAccess = (IMapServerDataAccess) this.so;&lt;BR /&gt;ms = (IMapServer) mapServerDataAccess;&lt;/P&gt;&lt;P&gt;String table_name = ms.getServerInfo(ms.getDefaultMapName()).getName();&lt;/P&gt;&lt;P&gt;I hope this work for you.&lt;/P&gt;&lt;P&gt;If you need more clarification you can make contact with me.&lt;/P&gt;&lt;P&gt;amir@wheretech.it&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:32:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soi-get-data-source/m-p/1236724#M20551</guid>
      <dc:creator>Amir-Sarrafzadeh-Arasi</dc:creator>
      <dc:date>2022-12-01T08:32:47Z</dc:date>
    </item>
  </channel>
</rss>

