<?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: Problem getting the map in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363368#M9567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply ldonahue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working with version 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you can not access the IMap within a SOE, neither can access the published FeatureLayer in service?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 13:15:53 GMT</pubDate>
    <dc:creator>angelurbano_rogel</dc:creator>
    <dc:date>2013-09-03T13:15:53Z</dc:date>
    <item>
      <title>Problem getting the map</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363366#M9565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a problem with the following line of code, I use a SOE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
 public static IMap getMyMap(IServerObjectHelper serverObject) throws IOException{
&amp;nbsp; 
&amp;nbsp; IMapServer2 mapServer_2 = (IMapServer2) serverObject.getServerObject();&amp;nbsp; 
&amp;nbsp; IMapServerObjects2 serverObjs_2 = (IMapServerObjects2) mapServer_2;&amp;nbsp; 
&amp;nbsp; IMap map = serverObjs_2.getMap(mapServer_2.getDefaultMapName());
&amp;nbsp; 
&amp;nbsp; return map;
 }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;when I run it, I get the following error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
AutomationException: No such interface supported
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help?, What am I doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 11:16:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363366#M9565</guid>
      <dc:creator>angelurbano_rogel</dc:creator>
      <dc:date>2013-09-03T11:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting the map</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363367#M9566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are working in 10.1 or 10.2, you can't do that anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scroll down to the SOE section and take note that IMap is not supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/04/27/considerations-for-arcgis-server-developers-a-look-toward-10-1/"&gt;http://blogs.esri.com/esri/arcgis/2011/04/27/considerations-for-arcgis-server-developers-a-look-toward-10-1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;SOE development requires knowledge of ArcObjects,.NET or Java, and&amp;nbsp; Web service communication technologies such as REST and SOAP. The&amp;nbsp; ArcObjects SDK has several samples that you can examine, both for &lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualhelp/engine/index.html#/Server_Object_Extensions/0001000004n8000000/"&gt;Java&lt;/A&gt; and &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Extending_ArcGIS_Server/0001000000mv000000/"&gt;.NET&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; If you plan on developing new SOEs, keep in mind that in ArcGIS&amp;nbsp; Server 10.1 you will be required to analyze your map documents before&amp;nbsp; publishing them and fix any errors that appear. Thus, one of the things&amp;nbsp; you can do to get your SOE�??s ready for 10.1 is to make sure they work&amp;nbsp; against MSDs at 10.0. Building SOE�??s on top of MSD based map services&amp;nbsp; with ArcGIS Server 10.0 is perfectly possible. &lt;STRONG&gt;The biggest requirement&amp;nbsp; is that you avoid using MXD-specific interfaces (such as IMap, ILayer,&amp;nbsp; anything to do with page layouts, and so on)&lt;/STRONG&gt;. &lt;A href="http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2010/11/12/Accessing-optimized-map-services-with-server-object-extensions.aspx"&gt;Here is a blog post&lt;/A&gt; describing how you can use IMapServerDataAccess to get to the data sources of an MSD-based map service.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 12:46:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363367#M9566</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-09-03T12:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting the map</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363368#M9567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply ldonahue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working with version 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you can not access the IMap within a SOE, neither can access the published FeatureLayer in service?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 13:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363368#M9567</guid>
      <dc:creator>angelurbano_rogel</dc:creator>
      <dc:date>2013-09-03T13:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting the map</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363369#M9568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sadly, no.&amp;nbsp; Not the way you were doing it before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before you get that far, you can't even use the same connection method you had before in your SOE either.&amp;nbsp; Connecting to ArcGIS Server using SOE does not allow servername, username and password anymore.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 13:24:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363369#M9568</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-09-03T13:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting the map</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363370#M9569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a big problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to know if they are visible or not the fields in a layer? and if it has defined a QueryDefinition?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 13:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363370#M9569</guid>
      <dc:creator>angelurbano_rogel</dc:creator>
      <dc:date>2013-09-03T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting the map</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363371#M9570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have a big problem.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Join the club.&amp;nbsp; Membership is free.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there any way to know if they are visible or not the fields in a layer? and if it has defined a QueryDefinition?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The blog link I provided indicates we can't do anything mxd related at 10.1 because of the optimized map services.&amp;nbsp; You have two choices for SOE, the REST API or the SOAP API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the SOAP API, I see a QueryFilter, but I don't see QueryDefinition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/soap/10.2/01vp/01vp00000190000000.htm"&gt;http://resources.arcgis.com/en/help/soap/10.2/01vp/01vp00000190000000.htm&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also see a Field in the SOAP API, but it doesn't have a visible property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/soap/10.2/01vp/01vp000000p3000000.htm"&gt;http://resources.arcgis.com/en/help/soap/10.2/01vp/01vp000000p3000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 14:01:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363371#M9570</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-09-03T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting the map</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363372#M9571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;LayerDescription&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/soap/10.2/01vp/01vp00000105000000.htm"&gt;http://resources.arcgis.com/en/help/soap/10.2/01vp/01vp00000105000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;DefinitionExpression&lt;/SPAN&gt;:&lt;BR /&gt;The LayerDescription includes a&amp;nbsp; &lt;SPAN style="font-style:italic;"&gt;DefinitionExpression&lt;/SPAN&gt;. A&amp;nbsp; &lt;SPAN style="font-style:italic;"&gt;DefinitionExpression&lt;/SPAN&gt; can be set on a layer in order to limit layer features available for display or query. &lt;SPAN style="text-decoration:underline;"&gt;This only applies for the request and &lt;STRONG&gt;does not replace the definition query set in the source map&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So close...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 14:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363372#M9571</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-09-03T14:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting the map</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363373#M9572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Idonahue Thank you, you helped me a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the end I managed to get the information required of layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. ILayerDescription.getDefinitionExpression () to get the layer DefinitionQuery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. IMapLayerInfo.getFields () gives me all the fields of the layer visible if I compare with the featureClass.getFields () can identify the fields are visible and not visible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 07:14:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-getting-the-map/m-p/363373#M9572</guid>
      <dc:creator>angelurbano_rogel</dc:creator>
      <dc:date>2013-09-05T07:14:09Z</dc:date>
    </item>
  </channel>
</rss>

