<?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: Issue with MosaicRule.WhereClause? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issue-with-mosaicrule-whereclause/m-p/877948#M5513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;Did you try the same query using the layer properties to see if its valid?&lt;/P&gt;&lt;P&gt;-Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jun 2019 17:47:17 GMT</pubDate>
    <dc:creator>Prashant_MukeshMangtani</dc:creator>
    <dc:date>2019-06-17T17:47:17Z</dc:date>
    <item>
      <title>Issue with MosaicRule.WhereClause?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issue-with-mosaicrule-whereclause/m-p/877947#M5512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to set the WhereClause on a MosaicRule against the ESRI Landsat imagery service. I can lock the raster to a list of ObjectIds, but a something like Name='LC82220782017324LGN00' doesn't work. I use to do something similar in ArcObjects with no issue. Am I doing something wrong? Thanks for your time, cg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 21:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issue-with-mosaicrule-whereclause/m-p/877947#M5512</guid>
      <dc:creator>ChrisGreen</dc:creator>
      <dc:date>2019-06-10T21:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MosaicRule.WhereClause?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issue-with-mosaicrule-whereclause/m-p/877948#M5513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;Did you try the same query using the layer properties to see if its valid?&lt;/P&gt;&lt;P&gt;-Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 17:47:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issue-with-mosaicrule-whereclause/m-p/877948#M5513</guid>
      <dc:creator>Prashant_MukeshMangtani</dc:creator>
      <dc:date>2019-06-17T17:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MosaicRule.WhereClause?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issue-with-mosaicrule-whereclause/m-p/877949#M5514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that did work when I did it manually (i.e., setting definition query of layer added). Is there a way to programmatically do the same thing, as I couldn't figure that out.  I'd assume the where clause of the mosaic rule, which worked in ArcObjects, would work in the Pro SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, cg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 18:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issue-with-mosaicrule-whereclause/m-p/877949#M5514</guid>
      <dc:creator>ChrisGreen</dc:creator>
      <dc:date>2019-06-17T18:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MosaicRule.WhereClause?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issue-with-mosaicrule-whereclause/m-p/877950#M5515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A big thanks to Kimberly (ESRI support) and ESRI for figuring this out for me.&amp;nbsp; Here's how to work this using a definition expression which gets the job done for my needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt;Map _map = await FindOpenExistingMapAsync("Map");&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; string layerName = "Landsat\\MS";&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; string imgServicePath = "http://landsat.arcgis.com/arcgis/rest/services/Landsat/MS/ImageServer";&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; ImageServiceLayer isLyr = null;&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; await QueuedTask.Run(() =&amp;gt;&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; isLyr = (ImageServiceLayer)LayerFactory.Instance.CreateRasterLayer(new Uri(imgServicePath),&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _map, LayerPosition.AutoArrange, layerName);&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CIMImageServiceLayer cimLyr = isLyr.GetDefinition() as CIMImageServiceLayer;&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CIMFeatureTable cimTable = cimLyr.FeatureTable;&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cimTable.DefinitionExpression = "Name IN ('LC80440302019155LGN00','LC80440312019155LGN00')";&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Layer layer = isLyr as Layer;&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layer.SetDefinition(cimLyr);&lt;/SPAN&gt;&lt;BR style="color: #201f1e; background-color: transparent; border: 0px none #201f1e; text-decoration: none;" /&gt;&lt;SPAN style="color: #201f1e; background-color: transparent; text-decoration: none;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 12:29:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issue-with-mosaicrule-whereclause/m-p/877950#M5515</guid>
      <dc:creator>ChrisGreen</dc:creator>
      <dc:date>2019-07-10T12:29:10Z</dc:date>
    </item>
  </channel>
</rss>

