<?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: SelectByAttribute Problem in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574998#M18978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changing the file path to "CURRENT" gives me the error that it can't find the map document when I run the code. I also added this script to my toolbox and it ran fine but didn't&amp;nbsp;select the area either. &amp;nbsp;I work for the county assessor as their GIS Tech. &amp;nbsp;So I am trying to write a script that zooms to a parcel then exports the map to a pdf and prints it off. I have the export and print portion done. Just not the zoom to feature part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also thanks for being so patient with me. This is highly appreciated. I've been wanting to learn Arcpy for awhile. I already know basic Python but Arcpy is new to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2017 20:56:39 GMT</pubDate>
    <dc:creator>JonathanUrshan1</dc:creator>
    <dc:date>2017-08-10T20:56:39Z</dc:date>
    <item>
      <title>SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574990#M18970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am trying to write a script that selects a parcel number and writes it to a PDF. I am having trouble with the SelectLayerByAttribute tool. &amp;nbsp;I am writing the script in PyCharm not in the Python Window of ArcMap. This is what I have gathered from various sources online. &amp;nbsp;I am pretty sure its an issue with my syntax. Any help would be much appreciated. &amp;nbsp;This is what I have so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;import &lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;arcpy

mxd = arcpy.mapping.MapDocument(&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;r"//bondserv2/USERS-COUNTY/ahuber/Desktop/Bond.mxd"&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;)

parcel = &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"Parcel_Point"
&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;df = arcpy.mapping.ListDataFrames(mxd&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;parcel)

layer = arcpy.mapping.ListLayers(mxd&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;df)

arcpy.SelectLayerByAttribute_management(layer&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"[PIN]&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt; = '021101104001'"&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I run the SelectLayerByAttribute tool in the python window just like the above code and it works. But trying to get it working in the PyCharm IDE is being a real pain. I'm new to python and arcpy, this is my first attempt at automating some one my everyday tasks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574990#M18970</guid>
      <dc:creator>JonathanUrshan1</dc:creator>
      <dc:date>2021-12-12T00:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574991#M18971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your case df is a list of dataframes. Add "[0]" at the end of the line to select the first dataframe from the list. And is "Parcel_point" the name of the dataframe? because that is what you are using in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same for&amp;nbsp;"layer" which is a list of layers (probably with only one layer in it). Add "[0]" at the end of the command to select the first item of the list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe try this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
mxd &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MapDocument&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"//bondserv2/USERS-COUNTY/ahuber/Desktop/Bond.mxd"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
parcel &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Parcel_Point"&lt;/SPAN&gt;

df &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListDataFrames&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxd&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; parcel&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxd&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; parcel&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; df&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByAttribute_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"[PIN] = '021101104001'"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574991#M18971</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T00:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574992#M18972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the variable parcel (Parcel_Point) is the layer that I am targeting, and the "021101104001" is the value I am trying to select with the field name PIN. Parcel_Point is one of the shapefiles.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:45:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574992#M18972</guid>
      <dc:creator>JonathanUrshan1</dc:creator>
      <dc:date>2017-08-10T15:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574993#M18973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the code that I posted?&amp;nbsp;You are running the code as a standalone script, so to see the selection, you would have to save the mxd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:59:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574993#M18973</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-08-10T15:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574994#M18974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah saved the mxd and ran the code. I got this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;File "C:/Users/ahuber/PycharmProjects/PrintToPDF/Print_to_PDF.py", line 7, in &amp;lt;module&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;df = arcpy.mapping.ListDataFrames(mxd, parcel)[0]&lt;BR /&gt;IndexError: list index out of range&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 16:23:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574994#M18974</guid>
      <dc:creator>JonathanUrshan1</dc:creator>
      <dc:date>2017-08-10T16:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574995#M18975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my bad... should have removed the "parcel" from the parameters...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change line 5 to:&lt;/P&gt;&lt;P&gt;df = arcpy.mapping.ListDataFrames(mxd)[0]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 19:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574995#M18975</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-08-10T19:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574996#M18976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, Good news is that the code runs and I don't get an error message. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; The bad news is that it still doesn't select the feature.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 19:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574996#M18976</guid>
      <dc:creator>JonathanUrshan1</dc:creator>
      <dc:date>2017-08-10T19:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574997#M18977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you saving the MXD? If you run the code as standalone script you will not see the result in for instance a session where you have the MXD open.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To test the effect you could open the MXD, run the code (change the path to the MXD by "CURRENT") and see if anything gets selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After selecting features what will be your next step?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 20:00:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574997#M18977</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-08-10T20:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574998#M18978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changing the file path to "CURRENT" gives me the error that it can't find the map document when I run the code. I also added this script to my toolbox and it ran fine but didn't&amp;nbsp;select the area either. &amp;nbsp;I work for the county assessor as their GIS Tech. &amp;nbsp;So I am trying to write a script that zooms to a parcel then exports the map to a pdf and prints it off. I have the export and print portion done. Just not the zoom to feature part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also thanks for being so patient with me. This is highly appreciated. I've been wanting to learn Arcpy for awhile. I already know basic Python but Arcpy is new to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 20:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574998#M18978</guid>
      <dc:creator>JonathanUrshan1</dc:creator>
      <dc:date>2017-08-10T20:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574999#M18979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The "CURRENT" keyword is only available in the Python window. I suggested to run the script there to verify if a selection was made&amp;nbsp;inside a session in the "Bond.mxd".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am right that the goal is to have a tool or toolbar button that allows an end user to select a parcel and print and export a map? Will the user be working inside the Bond.mxd or should this work inside any ArcMap Session?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the selection does not work, you actually don't need a selection to zoom to a feature. If the end user will provide the "PIN" you could use that like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'\\folder\path to your\workspace.gdb\featureclass'&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# replace with path to parcel featureclass&lt;/SPAN&gt;
pin &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'021101104001'&lt;/SPAN&gt;

where &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"[PIN] = '{0}'"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pin&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
fld &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'SHAPE@'&lt;/SPAN&gt;

lst &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; r &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; flds&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; where&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lst&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lst&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# take first feature&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; extent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# zoom to extent using:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# df.extent = extent&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/574999#M18979</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T00:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/575000#M18980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will be trying this today. If you don't mind me asking what is the fld = 'SHAPE@' portion of the code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Yes the code will be ran with the mxd open.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 20:41:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/575000#M18980</guid>
      <dc:creator>JonathanUrshan1</dc:creator>
      <dc:date>2017-08-11T20:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: SelectByAttribute Problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/575001#M18981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is a token used in the field list and refers to the geometry field, without having to worry about what the name of that field is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information about those tokens see:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/searchcursor-class.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/searchcursor-class.htm"&gt;SearchCursor—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;UL class="" style="color: #4d4d4d; background-color: #ffffff; font-size: 0.875em; margin-top: 1.71429em; margin-bottom: 1.5em;"&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@XY —A tuple of the feature's centroid x,y coordinates.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@TRUECENTROID —A tuple of the feature's true centroid x,y coordinates.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@X —A double of the feature's x-coordinate.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@Y —A double of the feature's y-coordinate.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@Z —A double of the feature's z-coordinate.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@M —A double of the feature's m-value.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@JSON — The esri JSON string representing the geometry.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@WKB —The well-known binary (WKB) representation for OGC geometry. It provides a portable representation of a geometry value as a contiguous stream of bytes.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@WKT —The well-known text (WKT) representation for OGC geometry. It provides a portable representation of a geometry value as a text string.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@ —A&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/geometry.htm" style="color: #007ac2; text-decoration: none;"&gt;geometry&lt;/A&gt;&amp;nbsp;object for the feature.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@AREA —A double of the feature's area.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;SHAPE@LENGTH —A double of the feature's length.&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;&lt;EM&gt;OID@ —The value of the ObjectID field.&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 20:43:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selectbyattribute-problem/m-p/575001#M18981</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-08-11T20:43:13Z</dc:date>
    </item>
  </channel>
</rss>

