Operation error using read_geo_data_frame
Expected behavior
Import KMZ File created on google earth
Actual behavior
Operation Error because " unsupported driver: LIBKMZ" Job: Executing operation "read_geo_data_frame" Message: unsupported driver: 'LIBKML' Code: -32003 Method: set_workspace_resource Exception: fiona.errors.DriverError
Traceback (most recent call last): File "/Users/agathehenry/.local/lib/python3.6/site-packages/cate-2.0.0.dev10-py3.6.egg/cate/util/web/jsonrpchandler.py", line 209, in send_service_method_result result = future.result() File "/Users/agathehenry/Downloads/cate-1.0.0/lib/python3.6/concurrent/futures/_base.py", line 425, in result return self.__get_result() File "/Users/agathehenry/Downloads/cate-1.0.0/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result raise self._exception File "/Users/agathehenry/Downloads/cate-1.0.0/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/Users/agathehenry/.local/lib/python3.6/site-packages/cate-2.0.0.dev10-py3.6.egg/cate/util/web/jsonrpchandler.py", line 306, in call_service_method result = method(*method_params, monitor=monitor) File "/Users/agathehenry/.local/lib/python3.6/site-packages/cate-2.0.0.dev10-py3.6.egg/cate/webapi/websocket.py", line 289, in set_workspace_resource monitor=monitor) File "/Users/agathehenry/.local/lib/python3.6/site-packages/cate-2.0.0.dev10-py3.6.egg/cate/core/wsmanag.py", line 317, in set_workspace_resource workspace.execute_workflow(res_name=res_name, monitor=monitor) File "/Users/agathehenry/.local/lib/python3.6/site-packages/cate-2.0.0.dev10-py3.6.egg/cate/core/workspace.py", line 605, in execute_workflow self.workflow.invoke_steps(steps, context=self._new_context(), monitor=monitor) File "/Users/agathehenry/.local/lib/python3.6/site-packages/cate-2.0.0.dev10-py3.6.egg/cate/core/workflow.py", line 627, in invoke_steps steps[0].invoke(context=context, monitor=monitor) File "/Users/agathehenry/.local/lib/python3.6/site-packages/cate-2.0.0.dev10-py3.6.egg/cate/core/workflow.py", line 318, in invoke self._invoke_impl(_new_context(context, step=self), monitor=monitor) File "/Users/agathehenry/.local/lib/python3.6/site-packages/cate-2.0.0.dev10-py3.6.egg/cate/core/workflow.py", line 980, in _invoke_impl return_value = self._op(monitor=monitor, **input_values) File "/Users/agathehenry/.local/lib/python3.6/site-packages/cate-2.0.0.dev10-py3.6.egg/cate/core/op.py", line 216, in call return_value = self._wrapped_op(**input_values) File "/Users/agathehenry/.local/lib/python3.6/site-packages/cate-2.0.0.dev10-py3.6.egg/cate/ops/io.py", line 301, in read_geo_data_frame features = fiona.open(file, mode="r", crs=crs, **kwargs) File "/Users/agathehenry/Downloads/cate-1.0.0/envs/cate-env/lib/python3.6/site-packages/fiona/init.py", line 165, in open enabled_drivers=enabled_drivers) File "/Users/agathehenry/Downloads/cate-1.0.0/envs/cate-env/lib/python3.6/site-packages/fiona/collection.py", line 162, in init self.guard_driver_mode() File "/Users/agathehenry/Downloads/cate-1.0.0/envs/cate-env/lib/python3.6/site-packages/fiona/collection.py", line 176, in guard_driver_mode raise DriverError("unsupported driver: %r" % driver) fiona.errors.DriverError: unsupported driver: 'LIBKML'
Steps to reproduce the problem
- Select in the operations panel "Read_geo_data_frame"
- Link the kHz file address in the first bar
- Let ces and 'more_args' empty
- Add step
Thanks, Agathe
Note, this is not a bug because KMZ/KML is currently not among the supported formats. Consider converting it to GeoJSON or ESRI Shapefile format, then try again.
@papesci see here, we may give it a try
Until KML/KMZ is in a release, I suggest the Operations panel clarifies this by avoiding the phrase "formats such as" in the sentence "Reads geo-data from files with formats such as ESRI Shapefile, GeoJSON, GML" ; this implies ESRI Shapefile, GeoJSON, GML are examples rather than the actual list.
Hi i have tried to import a GeoJson file converted from a KMZ file successfully. I have used this web site as conversion tool