-
Notifications
You must be signed in to change notification settings - Fork 10
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
extract error #75
Comments
Tracked down the row that was giving me trouble:
|
In
That creates an empty geodataframe
So then transferring column data back throws an error:
One possible solution
Although not sure if you prefer a try except... |
Avoiding issue with empty extract feature documented in #75
@jgrss I am running into issues with gw.extract again. I think its related to the issue above. Just wondering if we have any thoughts on a solution |
@mmann1123 have you tested this proposed solution? if not fea_df.empty:
for col in other_cols:
fea_df.loc[:, col] = df_row[col]
else:
pass I would be happy with this. |
@jgrss Yes this solves the issue for me. I've tested it in a few different scenarios |
Hey Jordan, I am trying to extract values to a large set of polygons. Just not sure how to interpret. Any ideas? I am using the lastest git version.
The text was updated successfully, but these errors were encountered: