<?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: Add Where clause to Offline Download or Sync in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/add-where-clause-to-offline-download-or-sync/m-p/733228#M9194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is possible. You need to provide overrides when you create the offline map to download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the ApplyFeatureFilter method in &lt;A href="https://developers.arcgis.com/net/latest/wpf/sample-code/generate-offline-map-overrides/"&gt;this sample&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, you set up parameters as usual, then ask for an overrides object. In that overrides object, you can modify the&amp;nbsp;specific GenerateGeodatabaseParameters for the layer(s) you're interested in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Tasks_Offline_GenerateGeodatabaseParameters.htm"&gt;GenerateGeodatabaseParameters&lt;/A&gt;&lt;/STRONG&gt; has an &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Tasks_Offline_GenerateGeodatabaseParameters_Extent.htm"&gt;Extent&lt;/A&gt;&lt;/STRONG&gt; property (it can be any polygon), and a &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Tasks_Offline_GenerateGeodatabaseParameters_LayerOptions.htm"&gt;LayerOptions&lt;/A&gt;&lt;/STRONG&gt; property. LayerOptions is a list of &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Tasks_Offline_GenerateLayerOption.htm"&gt;GenerateLayerOption&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;objects, one for each layer in the service/geodatabase. The&amp;nbsp;LayerOptions property lets you provide&amp;nbsp;a &lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Tasks_Offline_GenerateLayerOption_WhereClause.htm"&gt;&lt;STRONG&gt;WhereClause&lt;/STRONG&gt;&lt;/A&gt; for that layer, as well as whether to &lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Tasks_Offline_GenerateLayerOption_UseGeometry.htm"&gt;use the Extent&lt;/A&gt; set on&amp;nbsp;the GenerateGeodatabaseParameters object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This bit of the API takes a minute or two to understand (and I recommend you look at the above sample), but it's really powerful and gives you layer-by-layer control over taking the map offline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I can't quite remember is whether, when you sync edits, any offline map creates and edits need to meet any&amp;nbsp;Extent and WhereClause restrictions that were defined when the map was&amp;nbsp;downloaded. Worth making sure. I have asked the team that built this and will confirm when I find out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Oct 2020 21:47:00 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2020-10-02T21:47:00Z</dc:date>
    <item>
      <title>Add Where clause to Offline Download or Sync</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-where-clause-to-offline-download-or-sync/m-p/733227#M9193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a situation where at times to working areas may be pretty close together, and when the occurs the offline area overlaps.&amp;nbsp; At times there may be a significant amount of data collected in one of these overlapping areas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what is happening when a user wants to takes&amp;nbsp;area 2 offline, they will also pull all of the data collected as part of area 1.&amp;nbsp; And when syncing between these two offline maps they are still including the other area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be nice is if we could define a where clause as part of taking the map offline, so we only pull data associated to a specific project number.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Associated to this is that we were hoping to allow crews to collect existing data near the work areas (because this data is collected with GPS it is a chance to improve accuracy), so for this reason we give a good size buffer around our boundary when taking the project offline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2020 17:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-where-clause-to-offline-download-or-sync/m-p/733227#M9193</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2020-10-02T17:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add Where clause to Offline Download or Sync</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-where-clause-to-offline-download-or-sync/m-p/733228#M9194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is possible. You need to provide overrides when you create the offline map to download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the ApplyFeatureFilter method in &lt;A href="https://developers.arcgis.com/net/latest/wpf/sample-code/generate-offline-map-overrides/"&gt;this sample&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, you set up parameters as usual, then ask for an overrides object. In that overrides object, you can modify the&amp;nbsp;specific GenerateGeodatabaseParameters for the layer(s) you're interested in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Tasks_Offline_GenerateGeodatabaseParameters.htm"&gt;GenerateGeodatabaseParameters&lt;/A&gt;&lt;/STRONG&gt; has an &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Tasks_Offline_GenerateGeodatabaseParameters_Extent.htm"&gt;Extent&lt;/A&gt;&lt;/STRONG&gt; property (it can be any polygon), and a &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Tasks_Offline_GenerateGeodatabaseParameters_LayerOptions.htm"&gt;LayerOptions&lt;/A&gt;&lt;/STRONG&gt; property. LayerOptions is a list of &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Tasks_Offline_GenerateLayerOption.htm"&gt;GenerateLayerOption&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;objects, one for each layer in the service/geodatabase. The&amp;nbsp;LayerOptions property lets you provide&amp;nbsp;a &lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Tasks_Offline_GenerateLayerOption_WhereClause.htm"&gt;&lt;STRONG&gt;WhereClause&lt;/STRONG&gt;&lt;/A&gt; for that layer, as well as whether to &lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Tasks_Offline_GenerateLayerOption_UseGeometry.htm"&gt;use the Extent&lt;/A&gt; set on&amp;nbsp;the GenerateGeodatabaseParameters object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This bit of the API takes a minute or two to understand (and I recommend you look at the above sample), but it's really powerful and gives you layer-by-layer control over taking the map offline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I can't quite remember is whether, when you sync edits, any offline map creates and edits need to meet any&amp;nbsp;Extent and WhereClause restrictions that were defined when the map was&amp;nbsp;downloaded. Worth making sure. I have asked the team that built this and will confirm when I find out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2020 21:47:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-where-clause-to-offline-download-or-sync/m-p/733228#M9194</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2020-10-02T21:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add Where clause to Offline Download or Sync</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-where-clause-to-offline-download-or-sync/m-p/733229#M9195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like the path forward.&amp;nbsp; Thanks (will mark correct once we have implemented)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2020 14:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-where-clause-to-offline-download-or-sync/m-p/733229#M9195</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2020-10-06T14:45:38Z</dc:date>
    </item>
  </channel>
</rss>

