Closed phill0304 closed 4 years ago
@phill0304 can you provide the FGDB for this issue?
Also don't set SHAPE columns values to -999999
@achapkowski attached gdb with states and the csv I'm working with. The csv needs some cleanup before it can be joined to the states. Also attached the workbook file with code that does all this plus creating the join and trying to export the file to fc. There are a couple paths that need to be reset to run...
Thanks -Patrick
@achapkowski just a little more info: screenshot shows the result of is_empty run on the spatially enabled dataframe GeoSeriesAccessor -- all False -- so wondering if something else is wrong with data.
@achapkowski I resolved this by fixing a field name that had illegal characters. Still the empty geometry error is a bit worrisome since I had no issues with my geometry.
I ran into this issue yesterday as well, this issue discussion helped point me in the right direction to resolving it, thanks! My issue turned out to be that I had a few column names that started with a number which isn't allowed in a gdb. Once I renamed the columns it went in with no issues :) . -aTL
At the latest release, we added an optional sanitize column parameter when exporting data.
Can I request that improved error handling around this be added to the API? I recently ran into the above along with a separate issue #606, both errors returned were unrelated to the underlying problem.
For this issue, some of my dataframe column names were using characters unsupported in a GDB. For issue #606, some of my dataframe columns were unsupported dtypes.
I know it isn't critical, but it might be helpful for future users of the library.
Can I request that improved error handling around this be added to the API? I recently ran into the above along with a separate issue #606, both errors returned were unrelated to the underlying problem.
For this issue, some of my dataframe column names were using characters unsupported in a GDB. For issue #606, some of my dataframe columns were unsupported dtypes.
I know it isn't critical, but it might be helpful for future users of the library.
I echo this. I fixed the problem with the above, but the error provided is pretty misleading.
@robhaley the problem, especially with pyshapefile is that it's the one passing these errors, and we just pass it along.
Pro 2.5. When I try to execute to_featureclass on my spatially enabled dataframe I get the following run time error: The operation was attempted on an empty geometry.
I have run a script which checks for empty geometries in my dataframe and I don't detect any.
To Reproduce Steps to reproduce the behavior:
error:
Screenshots If applicable, add screenshots to help explain your problem.
Expected behavior Exports to feature class successfully
Platform (please complete the following information):
Additional context Add any other context about the problem here, attachments etc.