<?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: Simple SOE Question but stuck in ArcGIS Enterprise Extensibility Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/simple-soe-question-but-stuck/m-p/865950#M190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I couldn't figure out how to use IMapServerDataAccess until I read this. Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2020 02:15:11 GMT</pubDate>
    <dc:creator>DrewDowling</dc:creator>
    <dc:date>2020-07-31T02:15:11Z</dc:date>
    <item>
      <title>Simple SOE Question but stuck</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/simple-soe-question-but-stuck/m-p/865948#M188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a map service that presents a boundary. It has one layer, a polygon which is the boundary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working on an simple SOE that takes a point and runs an intersect to return a boolean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have passed in point working fine.&amp;nbsp; In fact, everything seems to be working fine, except how to get polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get the geometry of the layer from server object to run intersect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using 10.3 .NET SDK and ArcObjects.&lt;/P&gt;&lt;P&gt;This is my first SOE, too, so probably missing something obvious, but after 3 days of trying, need some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 16:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/simple-soe-question-but-stuck/m-p/865948#M188</guid>
      <dc:creator>RaymondIrwin</dc:creator>
      <dc:date>2015-11-12T16:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SOE Question but stuck</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/simple-soe-question-but-stuck/m-p/865949#M189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;from your jsonobject convert in IGeometry (arcobjects) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Conversion&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToGeometry&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;jsonObjectGeometry&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; esriGeometryType&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriGeometryPoint&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in arcobjects use a spatialfilter on featureclass with your IGeometry&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;here you can see how get featureclass from service in soe &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt; 
IFeatureClass
 &lt;SPAN class="token function"&gt;GetFeatureClass&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;IMapServer3
 mapServer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt;
 layerID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            IMapServerDataAccess
 dataAccess &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;IMapServerDataAccess
&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;mapServer&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;
 dataAccess&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetDataSource&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mapServer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DefaultMapName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; layerID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt;
 IFeatureClass
&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Return your client a json using ToJsonObject&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;JsonObject jsonResultsGeometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Conversion&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToJsonObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polygonGeometry&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can see this sample (spatial query soe) that it does your same task (input point and return polygons) &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fresources.arcgis.com%2Fen%2Fhelp%2Farcobjects-net%2Fconceptualhelp%2Findex.html%23%2F%2F000100000nwp000000" target="_blank"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000nwp000000&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/simple-soe-question-but-stuck/m-p/865949#M189</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2021-12-12T10:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SOE Question but stuck</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/simple-soe-question-but-stuck/m-p/865950#M190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I couldn't figure out how to use IMapServerDataAccess until I read this. Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 02:15:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/simple-soe-question-but-stuck/m-p/865950#M190</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2020-07-31T02:15:11Z</dc:date>
    </item>
  </channel>
</rss>

