<?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: Points to a list in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/points-to-a-list/m-p/108776#M3734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can do &lt;/SPAN&gt;&lt;SPAN style="font-family:&amp;quot;Courier New&amp;quot;;"&gt;pnt.__geo_interface__&lt;/SPAN&gt;&lt;SPAN&gt; to get a GeoJson representation, the "coordinates" attribute of the dictionary is what you need. You can use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/AsShape/000v00000153000000/" rel="nofollow"&gt;AsShape&lt;/A&gt;&lt;SPAN&gt; to go the other direction.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Aug 2010 19:51:10 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2010-08-23T19:51:10Z</dc:date>
    <item>
      <title>Points to a list</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/points-to-a-list/m-p/108775#M3733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been looking for an example of how to do this - in all of my attempts I have fallen short. This deals more with python most likely than ArcGIS. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got to develop a polygon (actually a "hull") for a client running Arcview 10. I've geocoded addresses and now need to grab information "within" those points (polygons that exist within the point cloud). I thought I had solved this problem with 10 - until I realized the hull tool only existed in ArcINFO - not arcview. All other examples have been 9.3.1 related.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I follow the example from reading geometries: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy

infc = "Points_to_a_shapefiles"

# Identify the geometry field
#
desc = arcpy.Describe(infc)
shapefieldname = desc.ShapeFieldName

# Create search cursor
#
rows = arcpy.SearchCursor(infc)

# Enter for loop for each feature/row
#
for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Create the geometry object 'feat'
&amp;nbsp;&amp;nbsp;&amp;nbsp; #
&amp;nbsp;&amp;nbsp;&amp;nbsp; feat = row.getValue(shapefieldname)
&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt = feat.getPart()

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Print x,y coordinates of current point
&amp;nbsp;&amp;nbsp;&amp;nbsp; #
&amp;nbsp;&amp;nbsp;&amp;nbsp; print pnt.X, pnt.Y&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How would I toss x and y into a list that I could access.....it seems like everything I've tried doesn't work entirely. Plus it's been a day of distraction.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually I hope someone looks at this and goes "Oh - you do this like &amp;lt;blank&amp;gt;" - I can't be the first one trying to invent this wheel. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks hopefully....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 19:47:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/points-to-a-list/m-p/108775#M3733</guid>
      <dc:creator>RandalHale</dc:creator>
      <dc:date>2010-08-23T19:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Points to a list</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/points-to-a-list/m-p/108776#M3734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can do &lt;/SPAN&gt;&lt;SPAN style="font-family:&amp;quot;Courier New&amp;quot;;"&gt;pnt.__geo_interface__&lt;/SPAN&gt;&lt;SPAN&gt; to get a GeoJson representation, the "coordinates" attribute of the dictionary is what you need. You can use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/AsShape/000v00000153000000/" rel="nofollow"&gt;AsShape&lt;/A&gt;&lt;SPAN&gt; to go the other direction.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 19:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/points-to-a-list/m-p/108776#M3734</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-08-23T19:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Points to a list</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/points-to-a-list/m-p/108777#M3735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I appreciate the answer but for the slow - of which I am today -&amp;nbsp; Can you give me a small example - I've heard Geojson twice now in less than a week and I'm a bit unclear on what it is (hastily reading on the net and ESRI Docs now)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 20:36:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/points-to-a-list/m-p/108777#M3735</guid>
      <dc:creator>RandalHale</dc:creator>
      <dc:date>2010-08-23T20:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Points to a list</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/points-to-a-list/m-p/108778#M3736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In this context, it's a Python dictionary of a specific form that, from what I can tell, has the data you're going for already in a convenient format.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 20:54:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/points-to-a-list/m-p/108778#M3736</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-08-23T20:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Points to a list</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/points-to-a-list/m-p/108779#M3737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another approach might be a list comprehension:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ptTupleList = [(p.shape.firstPoint.X,p.shape.firstPoint.Y) for p in arcpy.SearchCursor(myFC)]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...will give you a list of (X,Y) tuples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, please keep an eye on the GP gallery, there is a hull tool in the works for footprints of address points.&amp;nbsp; It may be out in September.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 14:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/points-to-a-list/m-p/108779#M3737</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2010-08-24T14:37:41Z</dc:date>
    </item>
  </channel>
</rss>

