<?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: MOOC, Cartography and ArcGIS PRO in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/mooc-cartography-and-arcgis-pro/m-p/1150484#M63940</link>
    <description>&lt;P&gt;&lt;SPAN&gt;The layer supports method will tell you if your layer supports a definition query:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The layer DefinitionQuery property will set a definition query on a layer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_0-1646353225058.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35552iED4562EAA8A6E64C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_0-1646353225058.png" alt="KimGarbade_0-1646353225058.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 00:20:47 GMT</pubDate>
    <dc:creator>KimberlyGarbade</dc:creator>
    <dc:date>2022-03-04T00:20:47Z</dc:date>
    <item>
      <title>MOOC, Cartography and ArcGIS PRO</title>
      <link>https://community.esri.com/t5/python-questions/mooc-cartography-and-arcgis-pro/m-p/1150466#M63938</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm well into Week 3 of the MOOC Program and thoroughly enjoying the experience.&lt;/P&gt;&lt;P&gt;However, after digging a bit deeper by poking around the Python Notebook and viewing a few videos on Python and ArcPy I've come to the conclusion that there's a V8 under the hood!&lt;/P&gt;&lt;P&gt;The trouble is I don't know how to get it out of first gear.&lt;/P&gt;&lt;P&gt;Here is a question for you. In week three, we were asked to&amp;nbsp; build a definition query. I was wondering can this definition query be exported/imported into Python Notebook?&lt;/P&gt;&lt;P&gt;The reason is that I would like to view the query as a python string. Does that make sense? I understand that python can accomplish all of the analysis tools + more and that the language is intuitive and easy to learn.&lt;/P&gt;&lt;P&gt;Well, I have to say I'm ready to venture into the unknown. I know that model builder can be exported to Python Notebook so I'm asking what about definition a query etc, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figure that beginning with concepts that are familiar to me might help me learn python. I want to get out of first gear and see what this baby can really do, but need your help!&lt;/P&gt;&lt;P&gt;Sincerely&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 22:47:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/mooc-cartography-and-arcgis-pro/m-p/1150466#M63938</guid>
      <dc:creator>AdrianOConnor</dc:creator>
      <dc:date>2022-03-03T22:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: MOOC, Cartography and ArcGIS PRO</title>
      <link>https://community.esri.com/t5/python-questions/mooc-cartography-and-arcgis-pro/m-p/1150479#M63939</link>
      <description>&lt;P&gt;Not exactly sure what you are asking, but the definition query can be read or set using the arcpy mapping module on the &lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/mapping/layer-class.htm" target="_self"&gt;layer class&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;So, if you set a definition query in Pro, you can use something like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;infc.definitionQuery&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;to get the current query in python format.&amp;nbsp; you can use this same property to set a definition query on a layer as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 23:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/mooc-cartography-and-arcgis-pro/m-p/1150479#M63939</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-03-03T23:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: MOOC, Cartography and ArcGIS PRO</title>
      <link>https://community.esri.com/t5/python-questions/mooc-cartography-and-arcgis-pro/m-p/1150484#M63940</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The layer supports method will tell you if your layer supports a definition query:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The layer DefinitionQuery property will set a definition query on a layer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_0-1646353225058.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35552iED4562EAA8A6E64C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_0-1646353225058.png" alt="KimGarbade_0-1646353225058.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 00:20:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/mooc-cartography-and-arcgis-pro/m-p/1150484#M63940</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-03-04T00:20:47Z</dc:date>
    </item>
  </channel>
</rss>

