<?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: Beginner's problems with iterating through an attribute table and exporting point in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/beginner-s-problems-with-iterating-through-an/m-p/735037#M56951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For version 10 or Arcmap use Split Layer by Attributes&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=37AEB018-1422-2418-A036-CA6D9920F808"&gt;http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=37AEB018-1422-2418-A036-CA6D9920F808&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;querying on the FID field will allow you to produce separate shapefiles for each point in your source shapefile.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2011 12:12:10 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2011-11-17T12:12:10Z</dc:date>
    <item>
      <title>Beginner's problems with iterating through an attribute table and exporting points</title>
      <link>https://community.esri.com/t5/python-questions/beginner-s-problems-with-iterating-through-an/m-p/735035#M56949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm reasonably new to Python, with no programming experience (I'm told I don't need any!). Having problems thinking this one through and would like some help if anyone can offer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a shapefile with a 47 point features in it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to iterate through and extract each feature to a single point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously I can do this using the export data function in ArcDesktop, but I'd like to start automating more frequently.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I know I can do this in Python, probably with the Select tool from ArcToolbox, and by iterating through the FID field in the attribute table to output each point. However, I have no idea how to get started on this, beyond 'import arcpy'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone offer suggestions? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 22:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/beginner-s-problems-with-iterating-through-an/m-p/735035#M56949</guid>
      <dc:creator>SamCoggins1</dc:creator>
      <dc:date>2011-11-16T22:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner's problems with iterating through an attribute table and exporting point</title>
      <link>https://community.esri.com/t5/python-questions/beginner-s-problems-with-iterating-through-an/m-p/735036#M56950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll probably want to start out with a Search Cursor and for loop to go through each of your features. Check out this link: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/SearchCursor/000v00000039000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/SearchCursor/000v00000039000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next, in the for look you would want to do a Select by Attributes on the FID of the value that it is currently hitting in the list. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000071000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000071000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After you have selected the feature by its FID, use the feature class to feature class tool to export it. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001200000020000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001200000020000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 11:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/beginner-s-problems-with-iterating-through-an/m-p/735036#M56950</guid>
      <dc:creator>StephanieWendel</dc:creator>
      <dc:date>2011-11-17T11:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner's problems with iterating through an attribute table and exporting point</title>
      <link>https://community.esri.com/t5/python-questions/beginner-s-problems-with-iterating-through-an/m-p/735037#M56951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For version 10 or Arcmap use Split Layer by Attributes&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=37AEB018-1422-2418-A036-CA6D9920F808"&gt;http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=37AEB018-1422-2418-A036-CA6D9920F808&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;querying on the FID field will allow you to produce separate shapefiles for each point in your source shapefile.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 12:12:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/beginner-s-problems-with-iterating-through-an/m-p/735037#M56951</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-11-17T12:12:10Z</dc:date>
    </item>
  </channel>
</rss>

