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

ValueError: Cannot write empty DataFrame to file. #9

Open
alexgleith opened this issue Mar 10, 2022 · 0 comments
Open

ValueError: Cannot write empty DataFrame to file. #9

alexgleith opened this issue Mar 10, 2022 · 0 comments
Assignees

Comments

@alexgleith
Copy link

I think the ID is 50

Traceback (most recent call last):
  File "/usr/local/bin/deafricacoastlines-vector", line 8, in <module>
    sys.exit(generate_vectors())
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/deafrica_coastlines/vector.py", line 1230, in generate_vectors
    points_gdf.to_crs("EPSG:4326").to_file(
  File "/usr/local/lib/python3.8/dist-packages/geopandas/geodataframe.py", line 1114, in to_file
    _to_file(self, filename, driver, schema, index, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/geopandas/io/file.py", line 367, in _to_file
    schema = infer_schema(df)
  File "/usr/local/lib/python3.8/dist-packages/geopandas/io/file.py", line 428, in infer_schema
    raise ValueError("Cannot write empty DataFrame to file.")
ValueError: Cannot write empty DataFrame to file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants