<?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: create and update feature class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-and-update-feature-class/m-p/712188#M55234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank you. i did a sort desc in the cursor and got the value of the field. i had to do this since the id value that i want is not the standard objectid field, but a user created field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2012 03:23:20 GMT</pubDate>
    <dc:creator>suhanatssuhanats</dc:creator>
    <dc:date>2012-01-26T03:23:20Z</dc:date>
    <item>
      <title>create and update feature class</title>
      <link>https://community.esri.com/t5/python-questions/create-and-update-feature-class/m-p/712185#M55231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a python script to create featureclass from an sql server database table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the sql table gets updated everyday. So i want to find the max(id) from featureclass and select only those newer rows in sql table where id &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;greater than featureclass id and update it to feature class.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 00:36:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-and-update-feature-class/m-p/712185#M55231</guid>
      <dc:creator>suhanatssuhanats</dc:creator>
      <dc:date>2012-01-21T00:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: create and update feature class</title>
      <link>https://community.esri.com/t5/python-questions/create-and-update-feature-class/m-p/712186#M55232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Suhanats,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find the max OBJECTID by appending the OIDs to a list and then retrieving the max value from the list.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fc = "Airports"

OID_list = []

rows = arcpy.SearchCursor(fc, "", "", "OBJECTID")
for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; OID_list.append(row.OBJECTID)

del row, rows

maxOID = max(OID_list)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next you can use maxOID variable to select only the new records within the SQL table.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-and-update-feature-class/m-p/712186#M55232</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-12T06:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: create and update feature class</title>
      <link>https://community.esri.com/t5/python-questions/create-and-update-feature-class/m-p/712187#M55233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a Summary Statistics tool in the analysis toolbox that will get you to get the max value for a field and output this value to a new table.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 13:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-and-update-feature-class/m-p/712187#M55233</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2012-01-23T13:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: create and update feature class</title>
      <link>https://community.esri.com/t5/python-questions/create-and-update-feature-class/m-p/712188#M55234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank you. i did a sort desc in the cursor and got the value of the field. i had to do this since the id value that i want is not the standard objectid field, but a user created field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 03:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-and-update-feature-class/m-p/712188#M55234</guid>
      <dc:creator>suhanatssuhanats</dc:creator>
      <dc:date>2012-01-26T03:23:20Z</dc:date>
    </item>
  </channel>
</rss>

