[OpenDroneMap-users] ERROR 6: The GeoJSON driver does not overwrite existing files.

Maik Pohl pohl at fog-gmbh.com
Fri Oct 16 01:39:32 PDT 2020


Hello opendronemap-users,

i have a program written in python, that runs opendronemap through 
docker from a subprocess.

There are two variations:

1. i run

docker run --rm -v /inpath:/datasets/code -v 
/outpath:/datasets/code/odm_orthophoto/ opendronemap/odm --project-path 
/datasets --fast-orthophoto --rerun-all

Close to finishing, i get this error:

[INFO]    running pdal info --boundary --filters.hexbin.edge_size=1 
--filters.hexbin.threshold=0 
/datasets/code/odm_georeferencing/odm_georeferenced_model.decimated.las 
 > 
/datasets/code/odm_georeferencing/odm_georeferenced_model.boundary.json
ERROR 6: The GeoJSON driver does not overwrite existing files.
Traceback (most recent call last):
File "/code/run.py", line 68, in <module>
app.execute()
File "/code/stages/odm_app.py", line 95, in execute
self.first_stage.run()
File "/code/opendm/types.py", line 356, in run
self.next_stage.run(outputs)
File "/code/opendm/types.py", line 356, in run
self.next_stage.run(outputs)
File "/code/opendm/types.py", line 356, in run
self.next_stage.run(outputs)
[Previous line repeated 5 more times]
File "/code/opendm/types.py", line 337, in run
self.process(self.args, outputs)
File "/code/stages/odm_georeferencing.py", line 135, in process
decimation_step=decimation_step)
File "/code/opendm/cropper.py", line 236, in create_bounds_gpkg
bounds_geojson_path = self.create_bounds_geojson(pointcloud_path, 
buffer_distance, decimation_step)
File "/code/opendm/cropper.py", line 207, in create_bounds_geojson
layer = out_ds.CreateLayer("convexhull", geom_type=ogr.wkbPolygon)
AttributeError: 'NoneType' object has no attribute 'CreateLayer'

Then i run

docker run --rm -v /inpath:/datasets/code -v 
/outpath:/datasets/code/odm_orthophoto/ opendronemap/odm --project-path 
/datasets --fast-orthophoto

this runs to the end and i get an orthophoto.


The second variation is for better quality orthophotos. I run:

docker run --rm -v /inpath:/datasets/code -v 
/outpath:/datasets/code/odm_orthophoto/ opendronemap/odm --project-path 
/datasets --depthmap-resolution 1000 --ignore-gsd --mesh-size 450000 
--mesh-octree-depth 11 --texturing-nadir-weight 30 --dem-resolution 2.0 
--orthophoto-resolution 2.0 --orthophoto-compression NONE 
--orthophoto-cutline true --skip-3dmodel --rerun-all

I get the same error as above.

Like before, i run the same command again without --rerun-all but then 
get the same error.

How can i solve this error?

Thank you, sincerely Maik Pohl



More information about the OpenDroneMap-users mailing list