<?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: Create definition query for image service in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-definition-query-for-image-service/m-p/1494892#M11705</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you seen that &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/adding-editing-definition-query-on/td-p/1486080" target="_self"&gt;thread&lt;/A&gt;?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2024 12:39:00 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2024-06-19T12:39:00Z</dc:date>
    <item>
      <title>Create definition query for image service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-definition-query-for-image-service/m-p/1494764#M11702</link>
      <description>&lt;P&gt;I am trying to add an image service with query def.&lt;/P&gt;&lt;P&gt;In case of the feature layer it is part of the FeatureLayerCreationParameters but not in the Mosaic or Raster parameters.&lt;/P&gt;&lt;P&gt;I wrote the code below, did not return any error but did not added the query.&lt;/P&gt;&lt;P&gt;Using the debugger the value of the image layer definition query does not changed after the line that should change it.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            var map = MapView.Active.Map;
            string Url = "https://ags111.stltd.co.il/arcgis/rest/services/mos1/ImageServer";
            QueuedTask.Run(() =&amp;gt;
            {
                var rasterCreationParams = new RasterLayerCreationParams(new Uri(Url));
                rasterCreationParams.Name = "modylayer";
                ImageServiceLayer imageServiceLayer =
                          LayerFactory.Instance.CreateLayer&amp;lt;BasicRasterLayer&amp;gt;(rasterCreationParams, map) as ImageServiceLayer;
                imageServiceLayer.SetDefinitionQuery("OBJECTID = 1");     
            });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 05:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-definition-query-for-image-service/m-p/1494764#M11702</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2024-06-19T05:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create definition query for image service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-definition-query-for-image-service/m-p/1494892#M11705</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you seen that &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/adding-editing-definition-query-on/td-p/1486080" target="_self"&gt;thread&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 12:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-definition-query-for-image-service/m-p/1494892#M11705</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-06-19T12:39:00Z</dc:date>
    </item>
  </channel>
</rss>

