Commit Graph

4 Commits

Author SHA1 Message Date
f2d71da8e1 fix(buildings): Optimize wall texture sampling with VRT windowed read
Replaced the memory-intensive full image read of per-tile orthophotos with a windowed read from the global Ortho VRT. This fixes memory crashes and ensures correct texture coverage for buildings that cross tile boundaries.
2026-02-03 23:35:51 +01:00
c9d7677b15 perf(heightmaps): Use in-memory warping for heightmap export
Improved performance and reduced disk I/O by using GDAL's MEM driver for intermediate warp operations. The warped dataset is now passed directly to the translate step without being written to a temporary file.
2026-02-03 23:15:01 +01:00
f9668f0549 fix(buildings): Implement windowed reading for ground snapping
Optimized memory usage by reading only the required pixel window from the heightmap VRT instead of loading the entire dataset into memory. This prevents crashes on large datasets while maintaining scientific accuracy for ground-snapping.
2026-02-03 23:12:47 +01:00
358e093e79 fix(buildings): Refactor _run to handle arguments with spaces correctly
Refactored the subprocess wrapper to only split the command part (first element) if it contains spaces, while preserving spaces in subsequent arguments (like file paths). Added unit tests for various scenarios including command overrides and error handling.
2026-02-03 23:09:21 +01:00