Creating feature class

1199
2
Jump to solution
10-01-2016 02:21 PM
ChiamakaOyekwe-Madumelu1
New Contributor

I am trying to create a road shape file but i keep getting errors when i run my code in pycharm.

arcpy.management.CreateFeatureclass(r"C:\Users\cxo121730\Desktop\site 5", "Road", "POLYLINE", r"C:\Users\cxo121730\Desktop\Redlands.gdb\Railroads", "SAME_AS_TEMPLATE", "SAME_AS_TEMPLATE", "PROJCS['NAD_1983_UTM_Zone_11N',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',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-117.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]];-5120900 -9998100 10000;-100000 10000;-100000 10000;0.001;0.001;0.001;IsHighPrecision", None, 0, 0, 0)

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Emeritus

Create Feature Class—Help | ArcGIS for Desktop 

try it without the template, remove the spaces from the featureclass name, and lastly can you do it through arccatalog.  If you can't, then there is something wrong with the destination gdb.  and lastly, lastly, save it somewhere else

View solution in original post

0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

Create Feature Class—Help | ArcGIS for Desktop 

try it without the template, remove the spaces from the featureclass name, and lastly can you do it through arccatalog.  If you can't, then there is something wrong with the destination gdb.  and lastly, lastly, save it somewhere else

0 Kudos
ChiamakaOyekwe-Madumelu1
New Contributor

Thanks Dan,

It worked

0 Kudos