<?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 Create and Cleanup Topology in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-create-and-cleanup-topology/m-p/544740#M42480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anybody have any luck Generating Summary for Topology Errors in an automated way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2012 13:52:03 GMT</pubDate>
    <dc:creator>JesseSheridan</dc:creator>
    <dc:date>2012-04-02T13:52:03Z</dc:date>
    <item>
      <title>Python Create and Cleanup Topology</title>
      <link>https://community.esri.com/t5/python-questions/python-create-and-cleanup-topology/m-p/544737#M42477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need some help getting started.&amp;nbsp; What I want to script is&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt; define some simple topology rules for a single dataset (must not have gaps, must not overlap self),&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; validate the topology,&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; step through each error and apply an automatic fix depending on the type of error (as from the context menu when viewing topo errors in ArcMap)&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;Can this be done?&amp;nbsp; Can someone point me to some examples, documentation, etc?&amp;nbsp; I've looked and all I can find is a posting about deleting existing topology (like &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/21947-Can-a-topology-rule-in-a-personal-geodatabase-be-deleted-using-Python?highlight=topology"&gt;http://forums.arcgis.com/threads/21947-Can-a-topology-rule-in-a-personal-geodatabase-be-deleted-using-Python?highlight=topology&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 20:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-create-and-cleanup-topology/m-p/544737#M42477</guid>
      <dc:creator>MichaelGartrell</dc:creator>
      <dc:date>2011-03-23T20:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python Create and Cleanup Topology</title>
      <link>https://community.esri.com/t5/python-questions/python-create-and-cleanup-topology/m-p/544738#M42478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you can. Here are some sample scripts we use in a Python batch program. However, I have yet to find a method to extract the value that are displayed in the Generate Summary after the topology has been validated. I have seem a couple of other posts on the same topic, but no responses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scratch_Workspace = "G:\\CE\\Forecast\\Parcels_2008_2010\\Parcels_Scratch.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace= Scratch_Workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput= "True"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Creates Feature Dataset and loads dataset into feature dataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateFeatureDataset_management(Scratch_Workspace,"Parcels_Topology","Parcels_Overlay_WD_Dissolved")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Select_analysis("Parcels_Overlay_WD_Dissolved","Parcels_Topology\\Parcels_Dissolved","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Creates topology and adds loaded dataset to topology and assigns rule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateTopology_management("Parcels_Topology","Parcels_Dissolved_Top","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.AddFeatureClassToTopology_management("Parcels_Topology\\Parcels_Dissolved_Top","Parcels_Topology\\Parcels_Dissolved","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.AddRuleToTopology_management("Parcels_Topology\\Parcels_Dissolved_Top","Must Not Overlap (Area)","Parcels_Topology\\Parcels_Dissolved","","","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Validates topology&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ValidateTopology_management("Parcels_Topology\\Parcels_Dissolved_Top","Full_Extent")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 17:52:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-create-and-cleanup-topology/m-p/544738#M42478</guid>
      <dc:creator>BillBass</dc:creator>
      <dc:date>2011-10-06T17:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Python Create and Cleanup Topology</title>
      <link>https://community.esri.com/t5/python-questions/python-create-and-cleanup-topology/m-p/544739#M42479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you can, to a point. Here are some sample scripts we use in a Python batch program. However, I have yet to find a method to extract the value that are displayed in the Generate Summary after the topology has been validated, or repair them in some automated fashion. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scratch_Workspace = "G:\\CE\\Forecast\\Parcels_2008_2010\\Parcels_Scratch.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace= Scratch_Workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput= "True"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Creates Feature Dataset and loads dataset into feature dataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateFeatureDataset_management(Scratch_Workspace,"Parcels_Topology","Parcels_Overlay_WD_Dissolved")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Select_analysis("Parcels_Overlay_WD_Dissolved","Parcels_Topology\\Parcels_Dissolved","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Creates topology and adds loaded dataset to topology and assigns rule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateTopology_management("Parcels_Topology","Parcels_Dissolved_Top","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.AddFeatureClassToTopology_management("Parcels_Topology\\Parcels_Dissolved_Top","Parcels_Topology\\Parcels_Dissolved","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.AddRuleToTopology_management("Parcels_Topology\\Parcels_Dissolved_Top","Must Not Overlap (Area)","Parcels_Topology\\Parcels_Dissolved","","","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Validates topology&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ValidateTopology_management("Parcels_Topology\\Parcels_Dissolved_Top","Full_Extent")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 17:53:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-create-and-cleanup-topology/m-p/544739#M42479</guid>
      <dc:creator>BillBass</dc:creator>
      <dc:date>2011-10-06T17:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Python Create and Cleanup Topology</title>
      <link>https://community.esri.com/t5/python-questions/python-create-and-cleanup-topology/m-p/544740#M42480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anybody have any luck Generating Summary for Topology Errors in an automated way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-create-and-cleanup-topology/m-p/544740#M42480</guid>
      <dc:creator>JesseSheridan</dc:creator>
      <dc:date>2012-04-02T13:52:03Z</dc:date>
    </item>
  </channel>
</rss>

