<?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: Delete Feature Class if no Geometry Exists in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414423#M14014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Something like this. Where SHAPE.AREA is the name of your shape field to test if it is null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;"SHAPE.AREA IS NOT NULL"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2012 21:09:48 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2012-05-29T21:09:48Z</dc:date>
    <item>
      <title>Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414420#M14011</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;I have a model using ModelBuilder that extracts data from an SDE database into a new personal geodatabase that the user creates.&amp;nbsp; I don't want to include any feature classes that have no geometry.&amp;nbsp; Is there a way to check all feature classes for geometry and delete the ones without using ModelBuilder?&amp;nbsp; The tool also extracts tables from spatial features from the SDE, is there a way to check if data exists in these tables and if not then delete them?&amp;nbsp; I am using ArcGIS 9.3.1.&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 20:29:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414420#M14011</guid>
      <dc:creator>StuartBlumberg</dc:creator>
      <dc:date>2012-05-29T20:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414421#M14012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use a where clause in your export of shapefield is null.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 20:40:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414421#M14012</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-05-29T20:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414422#M14013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mathew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using "feature class to feature class" tool to export the layers from SDE to the geodatabase.&amp;nbsp; Do I need to add something (null) to the 'expression' box inside the "feature class to feature class" tool to omit the layer if it has no geometry?&amp;nbsp; Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 21:04:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414422#M14013</guid>
      <dc:creator>StuartBlumberg</dc:creator>
      <dc:date>2012-05-29T21:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414423#M14014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Something like this. Where SHAPE.AREA is the name of your shape field to test if it is null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;"SHAPE.AREA IS NOT NULL"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 21:09:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414423#M14014</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-05-29T21:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414424#M14015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mathew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using that expression does not seem to prevent the feature class from being created.&amp;nbsp; It still creates the feature class with empty geometry.&amp;nbsp; Is there another approach?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 12:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414424#M14015</guid>
      <dc:creator>StuartBlumberg</dc:creator>
      <dc:date>2012-05-30T12:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414425#M14016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your geometry null or zero? You'll have to query based on the particulars of your data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 13:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414425#M14016</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-05-30T13:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414426#M14017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mathew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The feature class is completely empty, there are no rows in the attribute table.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 13:26:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414426#M14017</guid>
      <dc:creator>StuartBlumberg</dc:creator>
      <dc:date>2012-05-30T13:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414427#M14018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An empty feature class is very different than a feature class with no geometry. If you want to completely avoid exporting an entire feature class if it has no rows, use the get count method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
count = arcpy.GetCount_management(fc)
if count &amp;gt; 0:
&amp;nbsp;&amp;nbsp;&amp;nbsp; #export&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414427#M14018</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-11T18:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414428#M14019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see, I was using the wrong term, thanks for clarifying!&amp;nbsp; Unfortunately we are still on 9.3.1 so Arcpy will not work, is there a way to do it otherwise using sql?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 13:49:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414428#M14019</guid>
      <dc:creator>StuartBlumberg</dc:creator>
      <dc:date>2012-05-30T13:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414429#M14020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?tocVisable=1&amp;amp;id=1967&amp;amp;pid=1961&amp;amp;topicname=Get%20Count%20%28Data%20Management%29&amp;amp;pid=1961" rel="nofollow noopener noreferrer" target="_blank"&gt;Get Count&lt;/A&gt;&lt;SPAN&gt; is available for 9.3 as well. It just requires slightly different commands I believe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;result = gp.GetCount_management("roads")
count = int(result.GetOutput(0))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:47:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414429#M14020</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-11T18:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414430#M14021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I may be a bit slow when it comes to programming, where do I need to apply this code?&amp;nbsp; Do I need to a create a python script?&amp;nbsp; Can I put this into model builder?&amp;nbsp; How could I set it up to delete all empty feature classes in a geodatabase?&amp;nbsp; Thanks so much for your help and patience.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 14:02:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414430#M14021</guid>
      <dc:creator>StuartBlumberg</dc:creator>
      <dc:date>2012-05-30T14:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414431#M14022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the link I posted there is an example of it being used in a model work flow. You can use the same methodology to delete them by using the &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1753&amp;amp;pid=1749&amp;amp;topicname=Delete_%28Data_Management%29"&gt;delete tool&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 14:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414431#M14022</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-05-30T14:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Feature Class if no Geometry Exists</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414432#M14023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great!&amp;nbsp; That did the trick, thank you so much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 12:21:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-feature-class-if-no-geometry-exists/m-p/414432#M14023</guid>
      <dc:creator>StuartBlumberg</dc:creator>
      <dc:date>2012-05-31T12:21:09Z</dc:date>
    </item>
  </channel>
</rss>

