fix(buildings): Replace VSIUnlink with Unlink for GDAL compatibility

This commit is contained in:
2026-02-04 22:12:37 +01:00
parent 5739f71ce1
commit 56b5743b5f

View File

@@ -344,7 +344,7 @@ def _extract_texture_from_vrt(bounds: Tuple[float, float, float, float], vrt_ds:
gdal.VSIFSeekL(f, 0, 0)
data = gdal.VSIFReadL(1, size, f)
gdal.VSIFCloseL(f)
gdal.VSIUnlink(mem_path)
gdal.Unlink(mem_path)
return data
except Exception as exc:
print(f"[buildings] failed to extract texture from VRT: {exc}")