Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spatial.to_featureclass() errors on spatial reference #1745

Open
BruceHarold opened this issue Jan 23, 2024 · 0 comments
Open

spatial.to_featureclass() errors on spatial reference #1745

BruceHarold opened this issue Jan 23, 2024 · 0 comments
Assignees
Labels

Comments

@BruceHarold
Copy link

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 "", line 1, in
File "C:\Users\bruc5588\AppData\Local\ESRI\conda\envs\arcgispro-py3-quack\lib\site-packages\arcgis\features\geo_accessor.py", line 2668, in to_featureclass
result = to_featureclass(
File "C:\Users\bruc5588\AppData\Local\ESRI\conda\envs\arcgispro-py3-quack\lib\site-packages\arcgis\features\geo_io\fileops.py", line 1262, in to_featureclass
raise e
File "C:\Users\bruc5588\AppData\Local\ESRI\conda\envs\arcgispro-py3-quack\lib\site-packages\arcgis\features\geo_io\fileops.py", line 1095, in to_featureclass
VirtualizeCSV.zip

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
return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: ERROR 000622: Failed to execute (Create Feature Class). Parameters are not valid.
ERROR 000614: Cannot create Spatial Reference for spatial_reference

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.

@nparavicini7 nparavicini7 self-assigned this Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants