You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this in a workflow, one input (Postgres table) was empty (which is valid). Instead of doing nothing and exiting gracefully, I get the following traceback:
Traceback (most recent call last):
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/bin/vector2dggs", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/lib/python3.11/site-packages/vector2dggs/cli.py", line 25, in main
cli()
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/lib/python3.11/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/lib/python3.11/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/lib/python3.11/site-packages/vector2dggs/h3.py", line 304, in h3
_index(
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/lib/python3.11/site-packages/vector2dggs/h3.py", line 102, in _index
df = df.to_crs(cut_crs)
^^^^^^^^^^^^^^^^^^
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/lib/python3.11/site-packages/geopandas/geodataframe.py", line 1364, in to_crs
geom = df.geometry.to_crs(crs=crs, epsg=epsg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/lib/python3.11/site-packages/geopandas/geoseries.py", line 1124, in to_crs
self.values.to_crs(crs=crs, epsg=epsg), index=self.index, name=self.name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/richard/landcare/luis/.snakemake/conda/ce91d2d98a6110cf88fbd80a788421dc_/lib/python3.11/site-packages/geopandas/array.py", line 762, in to_crs
raise ValueError(
ValueError: Cannot transform naive geometries. Please set a crs on the object first.
The text was updated successfully, but these errors were encountered:
Using this in a workflow, one input (Postgres table) was empty (which is valid). Instead of doing nothing and exiting gracefully, I get the following traceback:
The text was updated successfully, but these errors were encountered: