dem_create hangs when using gdal 3.4.1 and pyroSAR 0.16
See original GitHub issueIf using the latest version of pyroSAR (0.16), dem_create hangs when trying to mosaic a DEM from a VRT built with the latest version of gdal (3.4.1). No error message appears. Executing the same commands using gdal 3.3 and pyroSAR 15.1 works fine:
search = cat.search(
collections = "COPERNICUS_DEM_1ARC_COG",
bbox=[lon1, lat1, lon2, lat2]
)
items = search.get_all_items()
item_json = items.to_dict()
tiles_to_mosaic=[]
for i in range (len(items)):
tile=item_json['features'][i]['assets']['data']['href']
tiles_to_mosaic.append(tile)
vrt=gdal.BuildVRT(outdir + "/dem_tmp.vrt", tiles_to_mosaic)
dem_create(src=vrt, dst=outdir + "/dem.tif", geoid_convert=True, geoid="EGM2008")
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Release 0.19 the pyroSAR Developers
Starting with release Yakkety (16.10), Ubuntu comes with GDAL >2.1. You can install it like this: sudo apt-get install python-gdal ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@johntruckenbrodt thanks a lot for fixing this! Using all available threads, with version 0.16.1 the execution time of dem_create has been reduced to just 2 seconds. 😃
Okay after the discussion in the GDAL issue above pyroSAR is now using different EGM lookup files, see https://github.com/johntruckenbrodt/pyroSAR/commit/598ac39af7ffc303777e6d10b931f8d7788afbae. @peterfriedl, I will publish pyroSAR version 0.16.1 later. Perhaps this already fixes this issue. Also interesting in this context: https://github.com/OSGeo/gdal/issues/3630.