<?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: Python Code to retrieve data. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643290#M50179</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using 10.1 or 10.0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's 10.0, then you can find all the cursor information here: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just search for the information I showed before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The concepts are the same, except the 10.0 cursor objects are slower.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You want to use these two functions at 10.0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
arcpy.SerachCursor() 
arcpy.UpdateCursor()
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:20:14 GMT</pubDate>
    <dc:creator>AndrewChapkowski</dc:creator>
    <dc:date>2021-12-12T03:20:14Z</dc:date>
    <item>
      <title>Python Code to retrieve data.</title>
      <link>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643284#M50173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hopefully someone could help me. Watch the video below it explains my problem and you can actually see what i am talking about.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I write the problem. I have two attribute tables and they have a field in common. I am trying to do automation either by python or field calculator to get information from one table to another one. I could do it manually but that would take me time which i dont have a lot of time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have lync so i can seen you an invite for you can see my screen you dont need to have the software just an internet connection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My email is &lt;/SPAN&gt;&lt;A href="mailto:hchapa@lrgvdc911.org"&gt;hchapa@lrgvdc911.org&lt;/A&gt;&lt;SPAN&gt; and my number is&amp;nbsp; 956-682-3481 ext. 143.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My name is hector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the video the link i provide below it will explain and you can actually see the problem thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way watch the video in the highest definiton and watch it in full screen 720 is hd for you can see it perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=ydBS0zYsIYs"&gt;https://www.youtube.com/watch?v=ydBS0zYsIYs&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 15:11:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643284#M50173</guid>
      <dc:creator>HectorChapa</dc:creator>
      <dc:date>2013-01-31T15:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code to retrieve data.</title>
      <link>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643285#M50174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can do this many different ways, but the easiest is probably to just do a spatial join.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check out: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00080000000q000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00080000000q000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also use a search and update cursor to add the information into the field. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Workflow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 1. Create a search cursor on the point data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 2. Grab the Geometry of the Point and use that geometry to select by location on the polygon&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 3. Using and update cursor, update the polygon with the ID value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 15:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643285#M50174</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2013-01-31T15:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code to retrieve data.</title>
      <link>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643286#M50175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you guiede me how to do a cursor and update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can send you a link for you can see my desktop and guide me&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you can help me out in writing the script for me is a little complicated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hector Chapa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 20:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643286#M50175</guid>
      <dc:creator>HectorChapa</dc:creator>
      <dc:date>2013-01-31T20:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code to retrieve data.</title>
      <link>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643287#M50176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Python scripting can be tough at first, just like and language, but these links should help you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; For Search Cursors, please see: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/SearchCursor/018w00000011000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/SearchCursor/018w00000011000000/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; For Update Cursors, please see: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/UpdateCursor/018w00000014000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/UpdateCursor/018w00000014000000/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; If the datasets live in the same workspace, you might need to start an edit session: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Editor/018w00000005000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Editor/018w00000005000000/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;For general python:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Look at the quick links section of this page: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/communities/python/"&gt;http://resources.arcgis.com/en/communities/python/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 10:27:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643287#M50176</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2013-02-01T10:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code to retrieve data.</title>
      <link>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643288#M50177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What happends if the dataset dont live in the same workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If i understand correctly, and do correct me if I am wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A workspace is where the data is store.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example if bot shapefiles live at c:/911/desktop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does my mxd has to be in the same workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, just tell let you know my workspace for the two shapefiles are in different locations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can it still work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 13:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643288#M50177</guid>
      <dc:creator>HectorChapa</dc:creator>
      <dc:date>2013-02-01T13:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code to retrieve data.</title>
      <link>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643289#M50178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;WHy cant i use arcpy.da.SearchCursor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it gives me a runtime error&amp;nbsp; module object has no attribute 'da'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 15:01:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643289#M50178</guid>
      <dc:creator>HectorChapa</dc:creator>
      <dc:date>2013-02-01T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code to retrieve data.</title>
      <link>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643290#M50179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using 10.1 or 10.0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's 10.0, then you can find all the cursor information here: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just search for the information I showed before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The concepts are the same, except the 10.0 cursor objects are slower.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You want to use these two functions at 10.0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
arcpy.SerachCursor() 
arcpy.UpdateCursor()
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:20:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-code-to-retrieve-data/m-p/643290#M50179</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2021-12-12T03:20:14Z</dc:date>
    </item>
  </channel>
</rss>

