<?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: Created feature class has invalid extent in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280984#M21663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try making your XY event in a blank mxd then export it as a shapefile with WGS coordinate system and add that to your map to see if it lines up. Make sure you are using the correct geographic transformation if your map layer uses a different coordinate system.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 12:40:26 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2012-03-13T12:40:26Z</dc:date>
    <item>
      <title>Created feature class has invalid extent</title>
      <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280976#M21655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the following code to create a feature class from an Excel table, then project it. It appears in the geodatabase as a feature class having a valid coordinate system. BUT, when I try to project the data, I get an "invalid extent" message. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, I cannot overlay these features on base data (no projection on the fly) and if I just have this feature class in a data frame, I can view it fine, but cannot zoom to, say, two of the features. There must be a fine detail I'm missing. Can you help, please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, I've tried CopyFeatures_management instead of FeatureToPoint_management and it works the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's some added info: I just tried to edit the feature class I made (just for fun). I cannot interactively select and move any one of the features. This indicates to me that I've not defined some basic parameter for the feature class and it's really confusing ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import modules&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set local variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dataDir = "c:\\data"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outWksp = "c:\\data\\assessors.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proj = "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;outproj = "PROJCS['NAD_1983_StatePlane_Idaho_West_FIPS_1103_Feet',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',2624666.666666666],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-115.75],PARAMETER['Scale_Factor',0.9999333333333333],PARAMETER['Latitude_Of_Origin',41.66666666666666],UNIT['Foot_US',0.3048006096012192]],VERTCS['NAD_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PARAMETER['Vertical_Shift',0.0],PARAMETER['Direction',1.0],UNIT['Meter',1.0]]"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;outtrans = "NAD_1983_To_WGS_1984_1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = outWksp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process one Excel file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inEfile = dataDir + "\\Fires1.xlsx\\Sheet1$"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.MakeXYEventLayer_management(inEfile, "X", "Y", "testLayer", proj)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.FeatureToPoint_management("testLayer", "TestFC")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Project_management("testFC", "TestFCProj", outproj, outtrans)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 17:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280976#M21655</guid>
      <dc:creator>BruceKessler</dc:creator>
      <dc:date>2011-12-14T17:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Created feature class has invalid extent</title>
      <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280977#M21656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you check to make sure your point layer you create has the projection referenced correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would try referencing the projection files directly, rather than copying them into your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
CSwgs84 = install_dir+r"\Coordinate Systems\Geographic Coordinate Systems\World\WGS 1984.prj"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:37:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280977#M21656</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-11T13:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Created feature class has invalid extent</title>
      <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280978#M21657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the suggestion, Mathew. I still get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 4927, in Project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;invalid extent for output coordinate system&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Project).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 22:29:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280978#M21657</guid>
      <dc:creator>BruceKessler</dc:creator>
      <dc:date>2011-12-14T22:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Created feature class has invalid extent</title>
      <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280979#M21658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;May be obvious, but are you sure your data is in valid lat/long format? Negative to account for western hemisphere? If you could post your source table, that might help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 13:30:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280979#M21658</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-12-15T13:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Created feature class has invalid extent</title>
      <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280980#M21659</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;Yep, I thought of that. I even reduced the xy coordinates to only 2 points and no extra attributes (for testing). Basically the table looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;46.447409&amp;nbsp; -116.856681&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;46.469863&amp;nbsp; -116.602003&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since yesterday I've determined that it's not the Excel file that's causing the problem. I've tried dbf and tables within my geodatabase. I've tried Copyfeatures_management as well. I've tried writing the new feature class out to a shapefile first. I've tried not defining the projection in the MakeXYEvent, then defining the projection afterwards. I've tried writing the new feature class into a Feature Dataset that already has a state plane projection defined (and BTW, projection on fly does NOT happen). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, I've tried doing this all in ModelBuilder as well as Python. I get the same error message every time (well, after I debug any typos, etc. from each change). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So here's what I've come up with. I think the MakeXYEvent&amp;nbsp; or FeaturetoPoint is somehow not setting the extent. The error comes from the Project tool and says the output extent is bad. My assumption is that the input extent is corrupt (as there is no way to set the output extent in the Project tool) and that is what is making the program blow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm now getting frustrated! Is there a MakeExtent function??? (Guess I'll take a look.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why isn't there a tool that does simply what the right-click in ArcCatalog does???? That would be so simple. AND I think this might be a tool used by many.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280980#M21659</guid>
      <dc:creator>BruceKessler</dc:creator>
      <dc:date>2011-12-15T15:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Created feature class has invalid extent</title>
      <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280981#M21660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well if that is what your data actually is you have a pretty simple problem, you have your X and Y points reversed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280981#M21660</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-12-15T15:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Created feature class has invalid extent</title>
      <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280982#M21661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Well if that is what your data actually is you have a pretty simple problem, you have your X and Y points reversed.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OMG!!!! LOL. (I have other shorthands to add, but they aren't acceptable here.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you! Program works fine. WHAT A NOVICE ERROR!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guess that's what happens when you don't look at the obvious. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's just amazing what a latitude of -116 does to ArcMap! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok. I'm better now. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for following my trail into oblivion!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:31:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280982#M21661</guid>
      <dc:creator>BruceKessler</dc:creator>
      <dc:date>2011-12-15T15:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Created feature class has invalid extent</title>
      <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280983#M21662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I read your post during a search for the same problem with one exception, every time I use the MakeXYEvent tool in ArcMap it places my point and it adds 5 decimal degrees west and 1 decimal degree south to my longitude and latitude decimal degrees which I have set up in an xls file. I've used google maps to double check the lat/long, I've set the coordinate system the same as my map layer, and I still get the same added decimal degrees. Anybody got any suggestions as to what I may try next.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 23:11:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280983#M21662</guid>
      <dc:creator>TimothyColgan</dc:creator>
      <dc:date>2012-03-12T23:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Created feature class has invalid extent</title>
      <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280984#M21663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try making your XY event in a blank mxd then export it as a shapefile with WGS coordinate system and add that to your map to see if it lines up. Make sure you are using the correct geographic transformation if your map layer uses a different coordinate system.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 12:40:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280984#M21663</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-03-13T12:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Created feature class has invalid extent</title>
      <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280985#M21664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, that worked &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 02:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280985#M21664</guid>
      <dc:creator>TimothyColgan</dc:creator>
      <dc:date>2012-03-14T02:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Created feature class has invalid extent</title>
      <link>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280986#M21665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was having the same issue with the same extent error.&amp;nbsp; So I exported the raw data to state-plane-feet and it worked!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 15:42:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/created-feature-class-has-invalid-extent/m-p/280986#M21665</guid>
      <dc:creator>TaizoonShakir</dc:creator>
      <dc:date>2012-06-19T15:42:44Z</dc:date>
    </item>
  </channel>
</rss>

