Add demo raster workflow smoke
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-23 01:47:40 +02:00
parent e64600b4b0
commit 7b093c0838
8 changed files with 290 additions and 2 deletions
@@ -199,6 +199,13 @@ class RasterOperationsService:
preview_width = 1
return preview_width, preview_height
@staticmethod
def _window_bounds_to_list(bounds: Any) -> list[float]:
if isinstance(bounds, (list, tuple)) and len(bounds) == 4:
left, bottom, right, top = bounds
return [float(left), float(bottom), float(right), float(top)]
return [float(bounds.left), float(bounds.bottom), float(bounds.right), float(bounds.top)]
@staticmethod
def _normalize_preview_data(data: Any) -> Any:
try:
@@ -972,7 +979,7 @@ class RasterOperationsService:
{
"path": str(tile_path),
"pixel_window": [int(xoff), int(yoff), int(tile_width), int(tile_height)],
"bounds": [float(bounds.left), float(bounds.bottom), float(bounds.right), float(bounds.top)],
"bounds": RasterOperationsService._window_bounds_to_list(bounds),
"transform": [float(item) for item in transform.to_gdal()],
"index": tile_index,
},