<?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: Automated Query in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/automated-query/m-p/209778#M2227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jbarrette&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric, Gaston,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried looking at the Page Definition option available on the Definition Query tab?&amp;nbsp; This button becomes available for Data Driven Page (DDP) enabled maps.&amp;nbsp; If the feature tables you want to query (or not) have also have a field that matches the DDP then this may be a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric is correct in that this can done with arcpy.mapping using the layer.definitionQuery property.&amp;nbsp; Arcpy.mapping was designed to extend the out-of-the box capabilities of DDP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Dec 2010 13:27:40 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2010-12-16T13:27:40Z</dc:date>
    <item>
      <title>Automated Query</title>
      <link>https://community.esri.com/t5/mapping-questions/automated-query/m-p/209776#M2225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: gvj4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am creating a series of maps that focuses on a parcel and an easement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Each sketch should only include that particular parcel and the easment that crosses the parcel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created an index layer and mapbook series that zooms to each parcel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to automatically query out specific easement and parcel features when I select the mapbook page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have experience doing this sort of thing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gaston Jones&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 13:34:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/automated-query/m-p/209776#M2225</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-12-14T13:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Query</title>
      <link>https://community.esri.com/t5/mapping-questions/automated-query/m-p/209777#M2226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Gaston, great question! One possible way would be to change the definition query dynamically. I wish we could dynamically query out a dataset in a DataDrivenPage but I'm afraid it's not possible for the time being in arcpy. Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if tile == "TILE X":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]layer.definitionQuery = "PARCEL_ID = 89 and EASEMENT = "RIGHT-OF-WAY"[/INDENT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 16:13:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/automated-query/m-p/209777#M2226</guid>
      <dc:creator>EricAubert</dc:creator>
      <dc:date>2010-12-15T16:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Query</title>
      <link>https://community.esri.com/t5/mapping-questions/automated-query/m-p/209778#M2227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jbarrette&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric, Gaston,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried looking at the Page Definition option available on the Definition Query tab?&amp;nbsp; This button becomes available for Data Driven Page (DDP) enabled maps.&amp;nbsp; If the feature tables you want to query (or not) have also have a field that matches the DDP then this may be a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric is correct in that this can done with arcpy.mapping using the layer.definitionQuery property.&amp;nbsp; Arcpy.mapping was designed to extend the out-of-the box capabilities of DDP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 13:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/automated-query/m-p/209778#M2227</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-12-16T13:27:40Z</dc:date>
    </item>
  </channel>
</rss>

