arcgis-python-api
arcgis-python-api copied to clipboard
spatial.to_featureclass() errors on spatial reference
Describe the bug When I use spatial.to_featureclass() I get an ArcPy error, to_featureset() works.
To Reproduce See the attached Notebook
Error in Pro or Notebook
If applicable, add screenshots to help explain your problem.
Traceback (most recent call last):
File "
fc = arcpy.CreateFeatureclass_management(
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 3541, in CreateFeatureclass
raise e
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 3538, in CreateFeatureclass
retval = convertArcObjectToPythonObject(gp.CreateFeatureclass_management(*gp_fixargs((out_path, out_name, geometry_type, template, has_m, has_z, spatial_reference, config_keyword, spatial_grid_1, spatial_grid_2, spatial_grid_3, out_alias, oid_type), True)))
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing_base.py", line 520, in
Expected behavior A feature class should be written
Platform (please complete the following information):
- OS: Windows 10 Enterprisee
- Browser Chrome
- Python API Version 2.2.0.1
Additional context Add any other context about the problem here, attachments etc.