kessler

Created feature class has invalid extent

Discussion created by kessler on Dec 14, 2011
Latest reply on Jun 19, 2012 by mumbai52
Hi all,

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.

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?

BTW, I've tried CopyFeatures_management instead of FeatureToPoint_management and it works the same.

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.

Here's the code:

# Import modules
import arcpy

# Set local variables
dataDir = "c:\\data"
outWksp = "c:\\data\\assessors.gdb"
proj = "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]"

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]]"

outtrans = "NAD_1983_To_WGS_1984_1"

# Set workspace
arcpy.env.workspace = outWksp
   
# Process one Excel file
inEfile = dataDir + "\\Fires1.xlsx\\Sheet1$"
arcpy.MakeXYEventLayer_management(inEfile, "X", "Y", "testLayer", proj)
arcpy.FeatureToPoint_management("testLayer", "TestFC")

arcpy.Project_management("testFC", "TestFCProj", outproj, outtrans)

Outcomes